Returns a list of all active threads, which are threads that have been created but not destroyed or finished.
Returns the currently running greed thread or NIL if not called from within thread.
Destroys the thread passed in, so it will not run any more. It is an error to call this on the current thread.
FINISH (FUTURE &REST VALUES)
Mark a future as finished, along with all values it's finished with. If finished with another future, forward the current future to the new one.
Returns the values given to the future when it was completed.
Gets a future object from thread which will be completed when the thread is finished.
MAKE-FUTURE (&KEY PRESERVE-CALLBACKS (REATTACH-CALLBACKS T))
Create a blank future.
MAKE-THREAD (FUNCTION &KEY NAME)
Create a new green thread with an optional :name. The first parameter should be a function that takes no arguments. The thread will be queued immediately, so will run immediately if make-thread is called from outside any other green threads. Returns a thread object.
QUEUE-FUTURE (FUTURE ACTION &OPTIONAL THREAD)
Queues an action on current (or specified) thread to take place when provided future is completed.
Returns T if the passed in thread has not been destroyed.
Returns the name of the thread given at the time of creation or NIL.
Returns T if the object passed in is a thread.
JOIN-THREAD (&REST ARGS)
QUEUE-NEXT (ACTION &OPTIONAL THREAD)
RECV/CC (&REST ARGS)
SEND/CC (&REST ARGS)
THREAD-YIELD (&REST ARGS)
WAIT-ON (&REST ARGS)
CONSTRUCT-BATCHED-QUEUE (FRONT REAR)
QUEUE-NEXT-REPLACE (ACTION &OPTIONAL THREAD)
WITH-GREEN-THREAD (&BODY BODY)
A convenience macro that runs the code in a lambda wrapped in CPS transformin macros and a call to make-thread. Returns thread object.
RECV (CHANNEL CONTINUATION &KEY (BLOCKP T))
SEND (CHANNEL VALUE CONTINUATION &KEY (BLOCKP T))
SNOC (SEQUENCE VALUE)
Marks if a future has been finished or not.