one-shot-mutex 0.2.1

One-shot locks that panic instead of (dead)locking on contention.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! One-shot lock variants that do not implement `Sync`.
//!
//! These one-shot locks not implement `Sync`, which permits slightly more efficient
//! implementations.
//!
//! For variants that do implement `Sync`, see the [`sync`](crate::sync) module.

mod mutex;
mod rwlock;

pub use mutex::{OneShotMutex, OneShotMutexGuard, RawOneShotMutex};
pub use rwlock::{
    OneShotRwLock, OneShotRwLockReadGuard, OneShotRwLockUpgradableReadGuard,
    OneShotRwLockWriteGuard, RawOneShotRwLock,
};