Results for “Std.Sync.Mutex”
5 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Sync.Mutex
A lock, held by at most one thread at a time.
- Std.Sync.mutex
Std.Sync.MutexA new lock, not held.
- Std.Sync.lock
&Std.Sync.Mutex -> Result[(), Std.Sync.SyncError]Take a lock, waiting until it is free.
- Std.Sync.unlock
&Std.Sync.Mutex -> Result[(), Std.Sync.SyncError]Release a lock.
- Std.Sync.withLock
&Std.Sync.Mutex -> fn() -> T -> Result[T, Std.Sync.SyncError]Run an action with a lock held, and release it after the action returns.
