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 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
Condition variables


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex