Skip to main content

INIT_LOCK

Static INIT_LOCK 

Source
static INIT_LOCK: Mutex<()>
Available on crate feature pager and Unix only.
Expand description

Serializes set_scratch_dir callers so init failures can be retried on the next call. A plain Once would burn the only retry opportunity.