Library monitor

To use this library in your code:

import monitor
Synchronization primitives for coordinating and communicating between tasks.
Note that these monitors are not suitable for interprocess or network communication. They are only for tasks within one process.

Classes

A one-way communication channel between tasks.

A synchronization gate.

A latch that allows one task to wait until a value (object) has been provided by another task.

A two-way communication channel between tasks with replies to each message. Multiple messages (objects) can be sent, but only one can be in flight at a time.

Mutual exclusion monitor.

A semaphore synchronization primitive.

A signal synchronization primitive.