Set this object into a state such that pending and future calls to enter or callOnce will return false or do nothing, respectively, then unlock the internal mutex using the specified onceLock (possibly unblocking pending calls to enter or callOnce). The behavior is undefined unless onceLock was locked by a matching call to enter on this object and has not been tampered‐with since.

Synopsis

Declared in <bslmt_once.h>

void
leave(OnceLock* onceLock);

Created with MrDocs