Skip to main content

exchange_lock

Function exchange_lock 

Source
pub fn exchange_lock(memory: &Path, wait: bool) -> Result<Option<File>, String>
Expand description

One exchange at a time on this computer, whatever runs it (two Sioul started, the command line): a lock on <state>/share/exchange.lock, held while it runs, let go when the file returned is. wait: until the running one ends; else none while another holds it a second on.