Skip to main content

Module lock

Module lock 

Source
Expand description

§Lock Module

Provides synchronous and asynchronous lock abstractions along with their implementations. This module offers unified interfaces for different types of locks through traits, making it easier to write generic code that works with multiple lock types.

§Author

Haixing Hu

Structs§

ArcAsyncMutex
Asynchronous Mutex Wrapper
ArcAsyncRwLock
Asynchronous Read-Write Lock Wrapper
ArcMonitor
Arc-wrapped monitor for shared condition-based state coordination.
ArcMutex
Synchronous Mutex Wrapper (Parking Lot)
ArcRwLock
Synchronous Read-Write Lock Wrapper
ArcStdMutex
Synchronous Standard Mutex Wrapper
Monitor
Shared state protected by a mutex and a condition variable.
MonitorGuard
Guard returned by Monitor::lock.

Enums§

TryLockError
Non-blocking lock acquisition error.
WaitTimeoutResult
Result of waiting for a predicate with an overall timeout.
WaitTimeoutStatus
Result of a timed wait operation.

Traits§

AsyncLock
Unified asynchronous lock trait
Lock
Unified synchronous lock trait