All Manuals > LispWorks® User Guide and Reference Manual > 42 The MP Package

condition-variable-signal Function

Summary

Wakes one thread waiting on a given condition-variable.

Package

mp

Signature

condition-variable-signal condvar => signaledp

Arguments
condvar
Values
signaledp
A generalized boolean.
Description

The function condition-variable-signal wakes exactly one thread waiting on the condition-variable condvar. In most uses of condition variables, the caller should be holding the lock that the waiter used when calling condition-variable-wait for condvar, but this is not required. When using the lock, you may prefer to use lock-and-condition-variable-signal.

The return value signaledp is non-nil if a process was signaled, or nil if there were no processes waiting.

See also

condition-variable-wait
make-condition-variable
lock-and-condition-variable-signal
lock-and-condition-variable-wait
simple-lock-and-condition-variable-wait
lock-and-condition-variable-broadcast
condition-variable-broadcast
19.7.1 Condition variables


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:51