Access underlying mutex_ directly.

Synopsis

Declared in <folly/Synchronized.h>

Mutex&
unsafeGetMutex();

Description

Provided as a backdoor for call‐sites where the lock and unlock are paired in different calls. For example, in fork handlers. Use carefully as the caller is responsible to ensure it is paired with an unlock and there is nothing else in between that tries to implicitly or explicitly acquire the lock again.

Return Value

A reference to the underlying mutex.

Created with MrDocs