Portable Threadsas-atomic-operationall-threadsGoTo Top

all-threads   <no arguments> => list-of-threads[Function]

Purpose
Return a list of all known threads.

Package   :portable-threads

Module   :portable-threads

Arguments and values

list-of-threads     A proper list

Returns
A list of objects representing the threads.

Description
The returned list of threads is accurate only at the precise instant the all-threads function is called. New threads may be created or existing threads killed at any time, so the returned list is always potentially outdated.

See also
    current-thread
    thread-alive-p
    threadp
    spawn-form
    spawn-thread

Example

  > (all-threads)
  (#<thread Listener 1>)
  >

Notes
On Common Lisp implementations without threads, nil is returned.

The returned list of threads should not be destructively altered.


The GBBopen Project


Portable Threadsas-atomic-operationall-threadsGoTo Top