[−][src]Type Definition yaar_lock::RawMutex
type RawMutex<T, E> = Mutex<WordLock<E>, T>;
Implementation of a Mutex which requires an Event implementation for blocking.
The mutex is a usize
large and is based off of WordLock
from parking_lot
which employs adaptive spinning and fast acquire for uncontended cases. Because
it is a raw mutex, it depends on an Event
implementation to handle parking
/ blocking the current thread when contended. See lock_api::Mutex
for more info.