Public Member Functions | |
__init__ (self, int initial_value=0) | |
wait_for_value (self, int value) | |
Public Attributes | |
initial_value | |
worker_locks | |
Protected Member Functions | |
_add_worker_lock (self, lock) | |
_set_barrier_value (self, int value) | |
A barrier allowing individual workers to synchronize with the runtime sequence.
iron.worker.WorkerRuntimeBarrier.__init__ | ( | self, | |
int | initial_value = 0 |
||
) |
|
protected |
Register an additional lock in the barrier.
|
protected |
Set the value of the barrier.
iron.worker.WorkerRuntimeBarrier.wait_for_value | ( | self, | |
int | value | ||
) |
Should be called from inside a core function. Wait for the barrier to be set to `value`. Args: value (int): The value to wait for.
iron.worker.WorkerRuntimeBarrier.initial_value |
iron.worker.WorkerRuntimeBarrier.worker_locks |