Gate
Gate that holds multiple processes until flagged.
Gate
Gate that multiple processes can wait on for simultaneous release.
Source code in src/asimpy/gate.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | |
__init__(env)
Construct a new gate.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
env
|
Environment
|
simulation environment. |
required |
Source code in src/asimpy/gate.py
14 15 16 17 18 19 20 21 22 | |
release()
async
Release all waiting processes.
Source code in src/asimpy/gate.py
28 29 30 | |
wait()
async
Wait until gate is next opened.
Source code in src/asimpy/gate.py
24 25 26 | |