CellModules
mingw_stdthread::xp::condition_variable_any Class Reference

#include <mingw.condition_variable.h>

Inheritance diagram for mingw_stdthread::xp::condition_variable_any:
mingw_stdthread::xp::condition_variable

Public Types

typedef HANDLE native_handle_type
 

Public Member Functions

native_handle_type native_handle ()
 
 condition_variable_any (const condition_variable_any &)=delete
 
condition_variable_anyoperator= (const condition_variable_any &)=delete
 
 condition_variable_any ()
 
 ~condition_variable_any ()
 
template<class M >
void wait (M &lock)
 
template<class M , class Predicate >
void wait (M &lock, Predicate pred)
 
void notify_all () noexcept
 
void notify_one () noexcept
 
template<class M , class Rep , class Period >
cv_status wait_for (M &lock, const std::chrono::duration< Rep, Period > &rel_time)
 
template<class M , class Rep , class Period , class Predicate >
bool wait_for (M &lock, const std::chrono::duration< Rep, Period > &rel_time, Predicate pred)
 
template<class M , class Clock , class Duration >
cv_status wait_until (M &lock, const std::chrono::time_point< Clock, Duration > &abs_time)
 
template<class M , class Clock , class Duration , class Predicate >
bool wait_until (M &lock, const std::chrono::time_point< Clock, Duration > &abs_time, Predicate pred)
 

Protected Member Functions

template<class M >
bool wait_impl (M &lock, DWORD timeout)
 

Protected Attributes

recursive_mutex mMutex
 
std::atomic< int > mNumWaiters
 
HANDLE mSemaphore
 
HANDLE mWakeEvent
 

Detailed Description

Definition at line 47 of file mingw.condition_variable.h.

Member Typedef Documentation

◆ native_handle_type

Constructor & Destructor Documentation

◆ condition_variable_any() [1/2]

mingw_stdthread::xp::condition_variable_any::condition_variable_any ( const condition_variable_any )
delete

◆ condition_variable_any() [2/2]

mingw_stdthread::xp::condition_variable_any::condition_variable_any ( )
inline

Definition at line 62 of file mingw.condition_variable.h.

◆ ~condition_variable_any()

mingw_stdthread::xp::condition_variable_any::~condition_variable_any ( )
inline

Definition at line 67 of file mingw.condition_variable.h.

Member Function Documentation

◆ native_handle()

native_handle_type mingw_stdthread::xp::condition_variable_any::native_handle ( )
inline

Definition at line 56 of file mingw.condition_variable.h.

◆ notify_all()

void mingw_stdthread::xp::condition_variable_any::notify_all ( )
inlinenoexcept

Definition at line 119 of file mingw.condition_variable.h.

◆ notify_one()

void mingw_stdthread::xp::condition_variable_any::notify_one ( )
inlinenoexcept

Definition at line 140 of file mingw.condition_variable.h.

◆ operator=()

condition_variable_any & mingw_stdthread::xp::condition_variable_any::operator= ( const condition_variable_any )
delete

◆ wait() [1/2]

template<class M >
void mingw_stdthread::xp::condition_variable_any::wait ( M &  lock)
inline

Definition at line 106 of file mingw.condition_variable.h.

◆ wait() [2/2]

template<class M , class Predicate >
void mingw_stdthread::xp::condition_variable_any::wait ( M &  lock,
Predicate  pred 
)
inline

Definition at line 111 of file mingw.condition_variable.h.

◆ wait_for() [1/2]

template<class M , class Rep , class Period >
cv_status mingw_stdthread::xp::condition_variable_any::wait_for ( M &  lock,
const std::chrono::duration< Rep, Period > &  rel_time 
)
inline

Definition at line 156 of file mingw.condition_variable.h.

◆ wait_for() [2/2]

template<class M , class Rep , class Period , class Predicate >
bool mingw_stdthread::xp::condition_variable_any::wait_for ( M &  lock,
const std::chrono::duration< Rep, Period > &  rel_time,
Predicate  pred 
)
inline

Definition at line 168 of file mingw.condition_variable.h.

◆ wait_impl()

template<class M >
bool mingw_stdthread::xp::condition_variable_any::wait_impl ( M &  lock,
DWORD  timeout 
)
inlineprotected

Definition at line 74 of file mingw.condition_variable.h.

◆ wait_until() [1/2]

template<class M , class Clock , class Duration >
cv_status mingw_stdthread::xp::condition_variable_any::wait_until ( M &  lock,
const std::chrono::time_point< Clock, Duration > &  abs_time 
)
inline

Definition at line 174 of file mingw.condition_variable.h.

◆ wait_until() [2/2]

template<class M , class Clock , class Duration , class Predicate >
bool mingw_stdthread::xp::condition_variable_any::wait_until ( M &  lock,
const std::chrono::time_point< Clock, Duration > &  abs_time,
Predicate  pred 
)
inline

Definition at line 180 of file mingw.condition_variable.h.

Member Data Documentation

◆ mMutex

recursive_mutex mingw_stdthread::xp::condition_variable_any::mMutex
protected

Definition at line 50 of file mingw.condition_variable.h.

◆ mNumWaiters

std::atomic<int> mingw_stdthread::xp::condition_variable_any::mNumWaiters
protected

Definition at line 51 of file mingw.condition_variable.h.

◆ mSemaphore

HANDLE mingw_stdthread::xp::condition_variable_any::mSemaphore
protected

Definition at line 52 of file mingw.condition_variable.h.

◆ mWakeEvent

HANDLE mingw_stdthread::xp::condition_variable_any::mWakeEvent
protected

Definition at line 53 of file mingw.condition_variable.h.


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