Skip to main content

Module locks

Module locks 

Source
Expand description

A module for custom locks. Lock wrappers for debug checks and deadlock prevention.

Traits§

IntoShared
Wraps this value in an Arc<SyncMutex<>>

Functions§

shared
Wraps value in the standard shared lock handle.

Type Aliases§

AsyncMutex
An asynchronous mutex.
AsyncRwLock
An asynchronous read-write lock.
Shared
A value shared across threads behind the crate’s standard lock.
SyncMutex
A synchronous mutex.
SyncRwLock
A synchronous read-write lock.