Struct cryo::AtomicLock [−][src]
pub struct AtomicLock { /* fields omitted */ }
This is supported on crate feature
atomic
only.Expand description
An implementation of Lock
that uses atomic operations. Panics on borrow
failure.
Trait Implementations
type LockMarker = SendMarker
type LockMarker = SendMarker
The Send
-ness of this type indicates whether a lock can only be
acquired by the same thread as self
’s creator. Read more
type UnlockMarker = SendMarker
type UnlockMarker = SendMarker
The Send
-ness of this type indicates whether a lock can only be
released by the same thread as the one that acquired it. Read more
Acquire a shared lock, blocking the current thread until the lock is acquired. Read more
Acquire a shared lock. Read more
Release a shared lock. Read more
Acquire an exclusive lock, blocking the current thread until the lock is acquired. Read more
Acquire an exclusive lock. Read more
Release an exclusive lock. Read more