Skip to main content

Module sync

Module sync 

Source
Expand description

Synchronization primitives (the stable part of pragma_sync).

Structs§

AtomicCounter
A counter of unfinished tasks that can be waited on until it reaches zero.
CountLatch
A count-down latch: wait blocks until the counter reaches zero.
TaskLabel
A task label (see current_label).

Enums§

SyncError
Errors of the synchronization primitives.

Functions§

current_label
Passes to f the label of the task currently running on this thread (None: no labels).