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

Formats the value using the given formatter. Read more

The Send-ness of this type indicates whether a lock can only be acquired by the same thread as self’s creator. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.