![]() | ![]() | ![]() | thread-alive-p | ![]() |
|
| thread => boolean | [Function] |
Purpose
Return a value indicating whether 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-thread
Examples
> (defparameter *silly-thread* (spawn-thread "Sleeper" 'sleep 10000)) #<thread Sleeper> > (thread-alive-p *silly-thread*) t > (kill-thread *silly-thread*) t > (thread-alive-p *silly-thread*) nil >
The GBBopen Project
![]() | ![]() | ![]() | thread-alive-p | ![]() |