Expand description
Facade: bounded advisory file locks live in the lean-ctx-fs crate.
Structs§
- Turn
- One thread’s turn at a lock path within this process; the next waiter in line gets it when this drops.
Functions§
- acquire_
exclusive_ timeout - Takes an exclusive advisory lock, giving up after
timeoutrather than waiting for as long as the other holder cares to keep it. - is_
contended - take_
turn - Wait for this thread’s turn at
pathamong the threads of this process.Noneoncetimeoutpassed without any turn being handed over.