Previous: Low level thread primitives, Up: Threads
Higher level thread procedures are available by evaluating:
(use-modules (ice-9 threads))
The following procedures and macros provide standardized thread creation and mutex interaction.
This procedure is specified as the standard error-handler for
make-threadandbegin-thread. If the number of args is three or more, usedisplay-error, otherwise display a message "uncaught throw to tag". All output is sent to the port specified bycurrent-error-port.Before display, global var
the-last-stackis set to#fand signals are unmasked withunmask-signals.[FIXME: Why distinguish based on number of args?! Cue voodoo music here.]
Apply proc to args in a new thread formed by
call-with-new-threadusing%thread-handleras the error handler.
Evaluate forms first and rest in a new thread formed by
call-with-new-threadusing%thread-handleras the error handler.