Next: , Up: Threads   [Contents][Index]


5.15.1 Thread Contexts

Every thread created by Rep is a member of a thread context, this context is defined by the current position in the lisp call stack. At any point in time, only threads which are members of the current context may be executing.

Function: call-with-dynamic-root thunk

Call the function of zero-parameters thunk in a new thread context. The new context will contain a single thread, that executing thunk.

The call to call-with-dynamic-root will only return once all threads in the newly created context have been deleted, or a non-local exit causes control to leave forcibly.