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

NextPrevUpTopContentsIndex

barrier-enable

Function
Summary

Ensures that a barrier is enabled.

Package

mp

Signature

barrier-enable barrier count &optional kill-waiting

Arguments

barrier

A 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-wait
make-barrier
barrier-unblock


LispWorks User Guide and Reference Manual - 21 Dec 2011

NextPrevUpTopContentsIndex