chickadee » thread-utils » barrier-wait

barrier-wait BAR #!optional TIMOUTprocedure

Synchronize calling thread at the barrier BAR. The calling thread wi;; block until the barrier-limit number of threads have called barrier-wait on barrier BAR.

Returns #t, and #f otherwise, to the invoking thread when the barrier is "lifted".

barrier : barrier to wait "behind."
(or false real time) : timeout to abandon wait.