Module mutex

Module mutex 

Source

Structsยง

MappedMutexGuard
An RAII guard returned by the MutexGuard::map and MappedMutexGuard::map methods. When this structure is dropped (falls out of scope), the lock will be unlocked.
Mutex
A futures-aware mutex.
MutexGuard
An RAII guard returned by the lock and try_lock methods. When this structure is dropped (falls out of scope), the lock will be unlocked.
MutexLockFuture
A future which resolves when the target mutex has been successfully acquired.
OwnedMutexGuard
An RAII guard returned by the lock_owned and try_lock_owned methods. When this structure is dropped (falls out of scope), the lock will be unlocked.
OwnedMutexLockFuture
A future which resolves when the target mutex has been successfully acquired, owned version.

Enumsยง

Waiter ๐Ÿ”’

Constantsยง

HAS_WAITERS ๐Ÿ”’
IS_LOCKED ๐Ÿ”’
WAIT_KEY_NONE ๐Ÿ”’