Expand description
Futures-powered synchronization primitives.
This module is only available when the std
or alloc
feature of this
library is activated, and it is activated by default.
Structsยง
- BiLock
bilock
A type of futures-powered synchronization primitive which is a mutex between two possible owners. - BiLock
Acquire bilock
Future returned byBiLock::lock
which will resolve when the lock is acquired. - BiLock
Guard bilock
Returned RAII guard from thepoll_lock
method. - An RAII guard returned by the
MutexGuard::map
andMappedMutexGuard::map
methods. When this structure is dropped (falls out of scope), the lock will be unlocked. - A futures-aware mutex.
- An RAII guard returned by the
lock
andtry_lock
methods. 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.
- An RAII guard returned by the
lock_owned
andtry_lock_owned
methods. 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, owned version.
- Reunite
Error bilock
Error indicating twoBiLock<T>
s were not two halves of a whole, and thus could not bereunite
d.