Skip to main content

Module file_lock

Module file_lock 

Source
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 timeout rather than waiting for as long as the other holder cares to keep it.
is_contended
take_turn
Wait for this thread’s turn at path among the threads of this process. None once timeout passed without any turn being handed over.