Bordeaux-Threads

Version 0.8.8

Common Lisp threading library

Function INTERRUPT-THREAD

Syntax:

interrupt-thread thread function &rest arguments => thread

Arguments and values:

thread -> a thread object.
function -> a function object.
arguments -> values.

Description:

Interrupt thread and apply function to arguments within its dynamic context, then continue with the interrupted path of execution.

Returns the thread object it acted on.

Exceptional situations:

An error of type type-error will be signaled if thread is not a thread object.
An error of type type-error will be signaled if function is not a function designator.

See also:

make-thread, join-thread

Notes:

This may not be a good idea if thread is holding locks or doing anything important.

Last updated on 2022-01-07
Published on 2022-01-07
Edit on GitHub