GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::once_flag(3) C++ Standard Libary std::once_flag(3)

std::once_flag - std::once_flag


Defined in header <mutex>
class once_flag; (since C++11)


The class std::once_flag is a helper structure for std::call_once.


An object of type std::once_flag that is passed to multiple calls to std::call_once
allows those calls to coordinate with each other such that only one of the calls
will actually run to completion.


std::once_flag is neither copyable nor movable.

std::once_flag::once_flag


constexpr once_flag() noexcept;


Constructs an once_flag object. The internal state is set to indicate that no
function has been called yet.


(none)


call_once invokes a function only once even if called from multiple threads
(C++11) (function template)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.