Skip to main content

Crate orbit_lock

Crate orbit_lock 

Source
Expand description

Fleet-shared keyed locks over Orbit shared memory.

Current ownership lives in a fixed-capacity state table. A dedicated notified ring carries successful transitions for reactive consumers.

Structs§

DefaultLockLayout
Fence
Atomic resource-side high-water mark for fencing stale holders.
FenceToken
Monotonic identity of one lock tenure.
Lock
Fleet-shared lock handle. Clones share one event cursor.
LockCursor
LockEvent
Transition decoded from the notified ring.
LockKey
Resource identity used for contention.
LockLease
One current lock tenure returned by the authoritative table.
LockOwner
Opaque caller-chosen identity for one lock tenure.
LockPoll
Result of advancing one lock-event cursor.
RingEventFd
Process-local fd readiness bridge for one shared Orbit ring.

Enums§

Error
LockAcquire
Result of one atomic acquisition attempt.
LockTransition
One successful current-state change.

Constants§

LOCK_EVENT_RING_CAPACITY
LOCK_EVENT_RING_KIND
LOCK_EVENT_RING_PAYLOAD_CAPACITY
LOCK_EVENT_RING_SPEC
LOCK_STATE_CAPACITY
LOCK_STATE_KIND
LOCK_STATE_PAYLOAD_MAX

Traits§

LockLayout
Physical Orbit surfaces used by one lock domain.
LockType
Typed namespace for lock keys.

Type Aliases§

Result