File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -349,11 +349,11 @@ Barrier
349
349
350
350
A barrier object. Not thread-safe.
351
351
352
- This class, as a clone of :class: ` threading.Barrier `, provides a simple synchronization
353
- primitive for use by a fixed number of tasks that need to wait for each other.
354
- Each of the tasks tries to pass the barrier by calling the :meth: `~Barrier.wait ` method
355
- and would block until all of the tasks have made their :meth: `~Barrier.wait ` calls .
356
- At this point, the tasks are released simultaneously.
352
+ A barrier is a simple synchronization primitive that allows to block until a
353
+ certain number of tasks are waiting on it.
354
+ Tasks can wait on the :meth: `~Barrier.wait ` method and would be blocked until
355
+ the specified number of tasks end up waiting on :meth: `~Barrier.wait `.
356
+ At that point all of the waiting tasks would unblock simultaneously.
357
357
358
358
The barrier can be reused any number of times.
359
359
You can’t perform that action at this time.
0 commit comments