Skip to main content

Crate qubit_lock

Crate qubit_lock 

Source
Expand description

§Qubit Lock

Lock utilities for the Qubit Rust libraries.

The crate provides:

  • Synchronous lock wrappers with Arc integrated internally.
  • Asynchronous Tokio-based lock wrappers.
  • Monitor-style coordination built on Mutex plus Condvar.
  • A reusable double-checked locking executor.

§Author

Haixing Hu

Re-exports§

pub use double_checked::DoubleCheckedLockExecutor;
pub use double_checked::ExecutionContext;
pub use double_checked::ExecutionLogger;
pub use double_checked::ExecutionResult;
pub use double_checked::ExecutorBuilder;
pub use double_checked::ExecutorError;
pub use double_checked::ExecutorLockBuilder;
pub use double_checked::ExecutorReadyBuilder;
pub use lock::ArcAsyncMutex;
pub use lock::ArcAsyncRwLock;
pub use lock::ArcMonitor;
pub use lock::ArcMutex;
pub use lock::ArcRwLock;
pub use lock::AsyncLock;
pub use lock::Lock;
pub use lock::Monitor;
pub use lock::MonitorGuard;
pub use lock::TryLockError;
pub use lock::WaitTimeoutResult;
pub use lock::WaitTimeoutStatus;

Modules§

double_checked
Double-Checked Lock Executor
lock
Lock Module