pub struct RawMutex { /* fields omitted */ }
Raw mutex type backed by the parking lot.
INIT: RawMutex = RawMutex{state: ATOMIC_U8_INIT,}
Initial value for an unlocked mutex.
Marker type which determines whether a lock guard should be Send
. Use one of the GuardSend
or GuardNoSend
helper types here. Read more
Acquires this mutex, blocking the current thread until it is able to do so.
Attempts to acquire this mutex without blocking.
Unlocks this mutex using a fair unlock protocol.
Temporarily yields the mutex to a waiting thread if there is one. Read more
Duration type used for try_lock_for
.
Instant type used for try_lock_until
.
Attempts to acquire this lock until a timeout is reached.
Attempts to acquire this lock until a timeout is reached.