pub fn lock() -> EnvGuard
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.
EnvGuard
()