set_once overloads
Synopses
Declared in <folly/synchronization/CallOnce.h>
Grants the free set_once access to the flag internals.
void
set_once(OnceFlag&) noexcept;
[» more...]
Sets a flag, as if call_once(flag, []{}) was called.
template<typename OnceFlag>
void
set_once(OnceFlag& flag) noexcept;
Parameters
Name |
Description |
flag |
The once‐flag to set. |
Created with MrDocs