chickadee » thread-utils » barrier-wait

barrier-wait BAR #!optional TIMOUTprocedure

Synchronize calling thread at the barrier BAR. The calling thread will 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".

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