Struct spin_locks::IntelTsxHleSpinLock [] [src]

pub struct IntelTsxHleSpinLock(_);

An efficient, CAS-free unfair spin lock that uses an atomic exchange and only requires one byte of memory. Uses Intel TSX Hardware Lock Elision (which should be backwards compatible) to create a spin lock. Inspiration from https://github.com/cyfdecyf/spinlock, https://software.intel.com/en-us/articles/tsx-anti-patterns-in-lock-elision-code and http://locklessinc.com/articles/locks/

Trait Implementations

impl Debug for IntelTsxHleSpinLock
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for IntelTsxHleSpinLock
[src]

[src]

Returns the "default value" for a type. Read more

impl SpinLock for IntelTsxHleSpinLock
[src]

[src]

Returns true if acquired spin lock.

[src]

Returns true if acquired spin lock.

[src]

Unlocks the spin lock.

[src]

Returns true if locked (but not necessarily by this thread).

[src]

Returns true if unlocked.

[src]

Forcibly unlocks the spin lock, even if it is currently unlocked. Useful for working with persistent memory. Read more

Auto Trait Implementations