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

NextPrevUpTopContentsIndex

condition-variable-signal

Function
Summary

Wakes one thread waiting on a given condition variable.

Package

mp

Signature

condition-variable-signal condvar => signaledp

Arguments

condvar

A condition variable

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 this condition variable, 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


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex