Expand description
Internal component of the
noxudatabase.This crate is published only so the
noxuumbrella crate can depend on it. Usenoxu(noxu = "3") in applications; depend on this crate directly only if you are extending the engine internals. Its API may change without a major version bump.
Latching primitives for Noxu DB.
Latching primitives — exclusive and shared/exclusive latches used for B-tree node concurrency control.
Latches are expected to be held for short, defined periods of time. No deadlock detection is provided; it is the caller’s responsibility to sequence latch acquisition in an ordered fashion to avoid deadlocks.
Key properties:
- Uses
noxu_syncfor the underlying lock primitives - Reentrancy prevention is enforced (panics on reentrant acquire)
- Thread ownership tracking is always available via noxu_sync
Structs§
- Exclusive
Latch - An exclusive (mutex-like) latch.
- Exclusive
Latch Guard - RAII guard for an exclusive latch. Releases the latch when dropped.
- Latch
Context - Context information about a latch, used for debugging and diagnostics.
- Shared
Latch - A shared/exclusive (reader-writer) latch.
- Shared
Latch Read Guard - RAII guard for shared/read access. Releases when dropped.
- Shared
Latch Write Guard - RAII guard for exclusive/write access. Releases when dropped.
Enums§
- Latch
Error - Errors that can occur during latch operations.
Constants§
- DEFAULT_
LATCH_ TIMEOUT - Default latch timeout.