chickadee » thread-utils » barrier-wait

barrier-wait BAR #!optional TIMEOUT THREADprocedure

Synchronize the THREAD at the barrier BAR. The thread will block until the barrier-limit number of threads have used barrier-wait.

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

BAR
barrier : barrier to wait "behind."
TIMEOUT
(or false real time) : timeout to abandon wait.
THREAD
thread : thread; default (current-thread)