CellModules
mingw_stdthread::once_flag Class Reference

#include <mingw.mutex.h>

Public Member Functions

constexpr once_flag () noexcept
 

Private Member Functions

 once_flag (const once_flag &)=delete
 
once_flagoperator= (const once_flag &)=delete
 

Private Attributes

mutex mMutex
 
std::atomic_bool mHasRun
 

Friends

template<class Callable , class... Args>
void call_once (once_flag &once, Callable &&f, Args &&... args)
 

Detailed Description

Definition at line 458 of file mingw.mutex.h.

Constructor & Destructor Documentation

◆ once_flag() [1/2]

mingw_stdthread::once_flag::once_flag ( const once_flag )
privatedelete

◆ once_flag() [2/2]

constexpr mingw_stdthread::once_flag::once_flag ( )
inlineconstexprnoexcept

Definition at line 467 of file mingw.mutex.h.

Member Function Documentation

◆ operator=()

once_flag & mingw_stdthread::once_flag::operator= ( const once_flag )
privatedelete

Friends And Related Function Documentation

◆ call_once

template<class Callable , class... Args>
void call_once ( once_flag once,
Callable &&  f,
Args &&...  args 
)
friend

Definition at line 471 of file mingw.mutex.h.

Member Data Documentation

◆ mHasRun

std::atomic_bool mingw_stdthread::once_flag::mHasRun
private

Definition at line 461 of file mingw.mutex.h.

◆ mMutex

mutex mingw_stdthread::once_flag::mMutex
private

Definition at line 460 of file mingw.mutex.h.


The documentation for this class was generated from the following file: