Skip to main content

Module dir_lock

Module dir_lock 

Source
Expand description

An exclusive hold on a directory, against every other holder: other threads of this process, and on unix other processes, through flock on the directory itself. Settings tiers and memory directories are written by every session of every daemon (and CLI) the user runs over them.

Structs§

DirLock
LockTimeout
Carried by the io::ErrorKind::TimedOut error of DirLock::acquire_within.

Constants§

DIR_LOCK_WAIT
How long a writer of settings or memory waits for the directory before giving up.