Add a lock. Returns the lock for the caller to keep a reference to.
Drop every lock.
Snapshot of currently-active locks.
Returns the matching lock if path is locked AND principal is not exempt.
path
principal
Remove a previously-added lock.
Add a lock. Returns the lock for the caller to keep a reference to.