435
435
# to be cyclic. Threads are not allowed into it until it has fully drained
436
436
# since the previous cycle. In addition, a 'resetting' state exists which is
437
437
# similar to 'draining' except that threads leave with a BrokenBarrierError,
441
441
Barrier. Useful for synchronizing a fixed number of threads