Structs§
- Chain
Lock - Environment-independent chain lock interface and protocol.
Enums§
- Allow
Finalized - Specifies whether
ChainLock::try_acquire_with_optionsis allowed when the active transaction has already been finalized. - Record
Backoff - Specifies whether
ChainLock::try_acquire_with_optionsshould record contention backoff state if acquisition fails due to a higher-priority transaction holding the lock. - Result
- Result of attempting to acquire a
ChainLock.
Functions§
- acquire_
both_ or_ backoff - Utility to simplify expressions where two chain locks need to be acquired with backoff.
Returns
trueif both locks were acquired orfalseif the current transaction needs to back off.