Return the thread that called this function.
thunkin a new thread and with a new dynamic state, returning the new thread. The procedure thunk is called via
When handler is specified, then thunk is called from within a
#tthat has handler as its handler. This catch is established inside the continuation barrier.
Once thunk or handler returns, the return value is made the exit value of the thread and the thread is terminated.
Call body in a new thread, passing it body_data, returning the new thread. The function body is called via
When handler is non-
NULL, body is called via
SCM_BOOL_Tthat has handler and handler_data as the handler and its data. This catch is established inside the continuation barrier.
Once body or handler returns, the return value is made the exit value of the thread and the thread is terminated.
Wait for thread to terminate and return its exit value. Threads that have not been created with
scm_spawn_threadhave an exit value of
#tiff thread has exited.
If one or more threads are waiting to execute, calling yield forces an immediate context switch to one of them. Otherwise, yield has no effect.
Higher level thread procedures are available by loading the
(ice-9 threads) module. These provide standardized
Apply proc to args in a new thread formed by
call-with-new-threadusing a default error handler that display the error to the current error port. The args... expressions are evaluated in the new thread.