Module CCThread.Barrier
val create : unit -> tCreate a barrier.
val reset : t -> unitReset to initial (non-triggered) state.
val wait : t -> unitwait bwaits for barrierbto be activated byactivate b. All threads calling this wait untilactivate bis called. Ifbis already activated,wait bdoes nothing.
val activate : t -> unitactivate bunblocks all threads that were waiting onb.
val activated : t -> boolactivated breturnstrueiffactivate bwas called, andreset bwas not called since. In other words,activated b = truemeanswait bwill not block.