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

NextPrevUpTopContentsIndex

condition-variable-broadcast

Function
Summary

Wakes all threads currently waiting on a given condition-variable.

Package

mp

Signature

condition-variable-broadcast condvar => signaledp

Arguments

condvar

A condition-variable.

Values

signaledp

A generalized boolean.

Description

The function condition-variable-broadcast wakes all threads currently 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-broadcast.

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

See also

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


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex