Expand description
This module contains WorkerMonitor
and related types. It purposes includes:
- allowing workers to park,
- letting the last parked worker take action, and
- letting workers and mutators notify workers when workers are given things to do.
Structsยง
- Worker
Monitor ๐A data structure for synchronizing workers with each other and with mutators. - Worker
Monitor ๐Sync The synchronized part ofWorkerMonitor
. - Worker
Parker ๐This struct counts the number of workers parked and identifies the last parked worker.
Enumsยง
- Last
Parked ๐Result The result type of theon_last_parked
call-back inWorkMonitor::park_and_wait
. It decides how many workers should wake up afteron_last_parked
.