Skip to main content

Module lock

Module lock 

Source
Expand description

Render-lane locking helpers.

These helpers were promoted into [khora_core::lane::lock] so both khora-lanes and khora-infra (which depend only on khora-core) can use them. This file is kept as a thin re-export to preserve the existing crate::render_lane::util::lock::* import paths.

Functionsยง

mutex_lock
Locks a Mutex<T>, mapping poisoning to [LaneError::LockPoisoned].
mutex_lock_render
Locks a Mutex<T>, mapping poisoning to a [RenderError].
read_lock
Acquires a read lock, mapping poisoning to [LaneError::LockPoisoned].
read_lock_render
Like mutex_lock_render but for RwLock<T> read access.
write_lock
Acquires a write lock, mapping poisoning to [LaneError::LockPoisoned].
write_lock_render
Like mutex_lock_render but for RwLock<T> write access.