Available on crate feature
timed_mutex only.Expand description
A mutual exclusion primitive with a timed locking mechanism.
Functions§
- nstd_
timed_ ⚠mutex_ drop - Frees an instance of
NSTDTimedMutexafter invokingcallbackwith the mutex’s data. - nstd_
timed_ ⚠mutex_ free - Frees an instance of
NSTDTimedMutex. - nstd_
timed_ ⚠mutex_ get - Returns an immutable raw pointer to a timed mutex guard’s protected data.
- nstd_
timed_ ⚠mutex_ get_ mut - Returns an raw pointer to a timed mutex guard’s protected data.
- nstd_
timed_ ⚠mutex_ into_ inner - Consumes a timed mutex and returns the data it was protecting.
- nstd_
timed_ ⚠mutex_ is_ poisoned - Determines whether or not a timed mutex’s data is poisoned.
- nstd_
timed_ ⚠mutex_ lock - Waits for a timed mutex lock to become acquired, returning a guard wrapping the protected data.
- nstd_
timed_ ⚠mutex_ new - Creates a new timed mutual exclusion primitive.
- nstd_
timed_ ⚠mutex_ timed_ lock - The timed variant of
nstd_timed_mutex_lockreturning an uninitialized “none” result if the mutex lock could not be acquired after a specified number ofseconds. - nstd_
timed_ ⚠mutex_ try_ lock - The non-blocking variant of
nstd_timed_mutex_lockreturning an uninitialized “none” result if the mutex is locked by another thread. - nstd_
timed_ ⚠mutex_ unlock - Unlocks a timed mutex by consuming a mutex guard.
Type Aliases§
- NSTD
Optional Timed Mutex - Represents an optional value of type
NSTDTimedMutex. - NSTD
Optional Timed Mutex Lock Result - An optional value of type
NSTDTimedMutexLockResult. - NSTD
Timed Mutex - A mutual exclusion primitive with a timed locking mechanism.
- NSTD
Timed Mutex Guard - A handle to a timed mutex’s data.
- NSTD
Timed Mutex Lock Result - A result type containing a timed mutex lock whether or not the mutex is poisoned.