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

barrier-change-count Function

Summary

Changes the count of a barrier.

Package

mp

Signature

barrier-change-count barrier new-count => result

Arguments
barrier
new-count
A positive fixnum, or t meaning most-positive-fixnum.
Values
result
A boolean.
Description

The function barrier-change-count changes the count of the barrier barrier to new-count.

If barrier is enabled and the arriver count is less than new-count, this just sets the count of barrier to new-count and returns t. Otherwise, it calls:

(barrier-unblock barrier :reset-count new-count)

and returns nil.

See also

barrier
barrier-unblock
19.7.2 Synchronization barriers


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