All Manuals > LispWorks User Guide and Reference Manual > 35 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 => signalledp

Arguments

condvar

A condition variable

Values

signalledp

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 this condition variable, but this is not required. When using the lock, you may prefer to use lock-and-condition-variable-broadcast.

The return value signalledp is non-nil if some processes were signalled, 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


LispWorks User Guide and Reference Manual - 21 Dec 2011

NextPrevUpTopContentsIndex