symbol-value-in-threadPortable Threadsthread-namethread-alive-pGoTo Top

thread-alive-p   thread => boolean[Function]

Purpose
Determine if a thread is alive.

Package   :portable-threads

Module   :portable-threads

Arguments and values

thread     A thread
boolean     A generalized boolean

Returns
True if thread is alive; nil otherwise.

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

See also
    all-threads
    kill-thread
    spawn-form
    spawn-thread

Examples

  > (defparameter *silly-thread* (spawn-thread "Sleeper" 'sleep 10000))
  *silly-thread*
  > (thread-alive-p *silly-thread*)
  t
  > (kill-thread *silly-thread*)
  t
  > (thread-alive-p *silly-thread*)
  nil
  >


The GBBopen Project


symbol-value-in-threadPortable Threadsthread-namethread-alive-pGoTo Top