Generic FunctionPackage: mpToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
New since 8.2 release.


Arguments: barrier &key timeout callback pass-through discount-on-abort discount-on-timeout disable-on-unblock

The method when barrier is a barrier object is as follows.

If the barrier (a barrier instance) is disabled when this function is called, then it returns nil immediately, and all the other arguments are ignored.

Otherwise, this is an arrival at the barrier. If this arrival is not the last, then increment the arriver-count and either pass through or block. If the pass-through argument was non-nil, then return :passed-through; otherwise block until the barrier count is reached, or the timeout expires. If the timeout expires. return :timeout, otherwise return t.

If this arrival is the last, then optionally call the callback function, unblock the barrier, and return :unblocked.

The callback, discount, and disable arguments, override the corresponding slots in the barrier instance.

See Barrier API in smp.htm.

Copyright (c) 1998-2015, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 8.2. This page is new in the 8.2 release.
Created 2010.1.21.

Allegro CL version 8.2
New since 8.2 release.