[−][src]Module fast_async_mutex::mutex
fast_async_mutex it is a lib which provide asynchronous locking mechanisms, which used spinlock algorithm.
It's maybe very efficient because when mutex tries to acquire data unsuccessfully, these returning control to an async runtime back.
This lib built only on atomics and don't use others std synchronous data structures, which make this lib so fast.
The fast async mutex which uses spinlock algorithm with using waker
Structs
| Mutex | An async mutex.
It will be works with any async runtime in |
| MutexGuard | The Simple Mutex Guard
As long as you have this guard, you have exclusive access to the underlying |
| MutexGuardFuture | |
| MutexOwnedGuard | An owned handle to a held Mutex.
This guard is only available from a Mutex that is wrapped in an |
| MutexOwnedGuardFuture |