Namespaces
Variants
Views
Actions

std::once_flag

From cppreference.com
< cpp‎ | thread
Revision as of 03:39, 18 August 2011 by P12 (Talk | contribs)

Template:cpp/thread/sidebar

Defined in header <mutex>
class once_flag;
Template:mark c++11 feature

The class std::once_flag is a helper structure passed to Template:cpp to group invocations of that function so that only one invocation results in execution of one of the functions passed to Template:cpp.

Noncopyable.

Member functions

constructs the object
(public member function)

See also

Template:cpp/thread/dcl list call once