CellModules
mingw_stdthread::xp::condition_variable Class Reference

#include <mingw.condition_variable.h>

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

Public Types

typedef HANDLE native_handle_type
 

Public Member Functions

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

Protected Types

typedef condition_variable_any base
 

Protected Member Functions

template<class M >
bool wait_impl (M &lock, DWORD timeout)
 
template<class M >
void wait (M &lock)
 
template<class M , class Predicate >
void wait (M &lock, Predicate pred)
 
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 Attributes

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

Detailed Description

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

Member Typedef Documentation

◆ base

◆ native_handle_type

Member Function Documentation

◆ native_handle()

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

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

◆ notify_all()

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

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

◆ notify_one()

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

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

◆ wait() [1/4]

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

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

◆ wait() [2/4]

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

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

◆ wait() [3/4]

void mingw_stdthread::xp::condition_variable::wait ( unique_lock< mutex > &  lock)
inline

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

◆ wait() [4/4]

template<class Predicate >
void mingw_stdthread::xp::condition_variable::wait ( unique_lock< mutex > &  lock,
Predicate  pred 
)
inline

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

◆ wait_for() [1/4]

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 
)
inlineinherited

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

◆ wait_for() [2/4]

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 
)
inlineinherited

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

◆ wait_for() [3/4]

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

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

◆ wait_for() [4/4]

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

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

◆ wait_impl()

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

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

◆ wait_until() [1/4]

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 
)
inlineinherited

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

◆ wait_until() [2/4]

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 
)
inlineinherited

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

◆ wait_until() [3/4]

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

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

◆ wait_until() [4/4]

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

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

Member Data Documentation

◆ mMutex

recursive_mutex mingw_stdthread::xp::condition_variable_any::mMutex
protectedinherited

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

◆ mNumWaiters

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

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

◆ mSemaphore

HANDLE mingw_stdthread::xp::condition_variable_any::mSemaphore
protectedinherited

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

◆ mWakeEvent

HANDLE mingw_stdthread::xp::condition_variable_any::mWakeEvent
protectedinherited

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


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