Module sync

Module sync 

Source
Expand description

Useful synchronization primitives.

Modules§

non_null
This module provides a trait and some auxiliary types to help abstract and work with non-null pointers.

Structs§

RoArc
A reference-counting pointer with read-only capabilities.
RwArc
A reference-counting pointer with read-write capabilities.
RwLock
Spin-based Read-write Lock
RwLockReadGuard
A guard that provides immutable data access.
RwLockUpgradeableGuard
A guard that provides immutable data access but can be atomically upgraded to RwLockWriteGuard.
RwLockWriteGuard
A guard that provides mutable data access.
SpinLock
A spin lock.
SpinLockGuard
A guard that provides exclusive access to the data protected by a SpinLock.

Enums§

LocalIrqDisabled
A guardian that disables IRQs while holding a lock.
PreemptDisabled
A guardian that disables preemption while holding a lock.

Traits§

GuardTransfer
The Guard can be transferred atomically.
SpinGuardian
A guardian that denotes the guard behavior for holding a spin-based lock.