Skip to main content

lock

Function lock 

Source
pub fn lock() -> EnvGuard
Expand description

Acquire the process-wide environment lock.

Blocks until no other EnvGuard is alive. Poisoning is ignored — the inner () cannot become corrupted, so callers can safely recover.