Locks, applies a setup function, calls condition-variable-signal and unlocks.
locks the lock
, applies the
, calls condition-variable-signal and unlocks.
makes it easier to avoid mistakes in using a condition variable.
It returns the result of the call to condition-variable-signal.
setup-function is called with the lock held, so it should do the minimum amount of work and avoid locking other locks. Normally setup-function should only set the cell that the process(es) that wait(s) on the condition variable condvar check with the predicate in lock-and-condition-variable-wait.
LispWorks User Guide and Reference Manual - 21 Dec 2011