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

NextPrevUpTopContentsIndex

barrier-change-count

Function
Summary

Changes the count of a barrier.

Package

mp

Signature

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

Arguments

barrier

A 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
Synchronization barriers


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex