class
<mutex>
std::once_flagFlag argument type for call_once
Object of this type are used as arguments for call_once.Using the same object on different calls to call_once in different threads causes a single execution if called concurrently.
It is a non-copyable, non-movable, default-constructible class, declared in <mutex>
with the following prototype:
1
2
3
4
5
struct once_flag {
constexpr once_flag() noexcept;
once_flag (const once_flag&) = delete;
once_flag& operator= (const once_flag&) = delete;
};
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4