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

barrier-enable Function

Summary

Ensures that a barrier is enabled.

Package

mp

Signature

barrier-enable barrier count &optional kill-waiting

Arguments
barrier
count
A positive fixnum, or t meaning most-positive-fixnum.
kill-waiting
A boolean.
Description

The function barrier-enable ensures that the barrier barrier is enabled after unblocking it if it is already enabled, and sets its count to count. If kill-waiting is true, barrier-enable also kills any waiting threads. This is done by calling:

(barrier-unblock barrier
                 :reset-count count
                 :kill-waiting kill-waiting)
See also

barrier
barrier-wait
make-barrier
barrier-unblock
19.7.2 Synchronization barriers


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:51