Module futures_intrusive::sync
source · Expand description
Asynchronous synchronization primitives based on intrusive collections.
This module provides various primitives for synchronizing concurrently executing futures.
Structs
- A synchronization primitive which can be either in the set or reset state.
- A futures-aware mutex.
- An RAII guard returned by the
lockandtry_lockmethods. When this structure is dropped (falls out of scope), the lock will be unlocked. - A future which resolves when the target mutex has been successfully acquired.
- A futures-aware semaphore.
- A future which resolves when the target semaphore has been successfully acquired.
- An RAII guard returned by the
acquireandtry_acquiremethods. - A futures-aware shared semaphore.
- A future which resolves when the target semaphore has been successfully acquired.
- An RAII guard returned by the
acquireandtry_acquiremethods. - A Future that is resolved once the corresponding ManualResetEvent has been set
Type Aliases
- A
GenericManualResetEventwhich is not thread-safe. - A
GenericMutexwhich is not thread-safe. - A
GenericMutexGuardforLocalMutex. - A
GenericMutexLockFutureforLocalMutex. - A
GenericSemaphorewhich is not thread-safe. - A
GenericManualResetEventimplementation backed byparking_lot. - A
GenericMutexbacked byparking_lot. - A
GenericMutexGuardforMutex. - A
GenericMutexLockFutureforMutex. - A
GenericSemaphorebacked byparking_lot. - A
GenericSharedSemaphorebacked byparking_lot.