thread-namePortable Threadsthread-yieldthread-whostateGoTo Top

thread-whostate   thread => whostate[Function]

Purpose
Return a string that describes the current state of a thread.

Setf syntax

(setf (thread-whostate   thread) whostate) => whostate

Package   :portable-threads

Module   :portable-threads

Arguments and values

thread     A thread
whostate     A string or nil

Returns
The whostate string of the thread or nil.

Errors
Threads (multiprocessing) is not supported on the Common Lisp implementation.

See also
    spawn-form
    spawn-thread
    with-lock-held
    without-lock-held

Example

  > (thread-whostate thread)
  "Running"
  >

Note
Although the whostate value can provide helpful information when debugging, specific whostate values and their meanings vary among Common Lisp implementations and should not be used programmatically.

Only Allegro CL, Clozure CL, and Digitool's Macintosh Common Lisp support user-settable whostates; (setf whostate) is a no-op on other Common Lisp implementations.


The GBBopen Project


thread-namePortable Threadsthread-yieldthread-whostateGoTo Top