CellModules
mingw_stdthread::vista::condition_variable Class Reference

#include <mingw.condition_variable.h>

Inheritance diagram for mingw_stdthread::vista::condition_variable:
mingw_stdthread::vista::condition_variable_any

Public Types

typedef PCONDITION_VARIABLE native_handle_type
 

Public Member Functions

native_handle_type native_handle (void)
 
 condition_variable (void)
 
 ~condition_variable (void)=default
 
 condition_variable (const condition_variable &)=delete
 
condition_variableoperator= (const condition_variable &)=delete
 
void notify_one (void) noexcept
 
void notify_all (void) noexcept
 
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)
 

Protected Member Functions

bool wait_impl (unique_lock< xp::mutex > &lock, DWORD time)
 
bool wait_impl (unique_lock< windows7::mutex > &lock, DWORD time)
 

Static Protected Member Functions

template<typename MTX >
static void before_wait (MTX *pmutex)
 
template<typename MTX >
static void after_wait (MTX *pmutex)
 

Protected Attributes

CONDITION_VARIABLE cvariable_
 

Detailed Description

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

Member Typedef Documentation

◆ native_handle_type

Constructor & Destructor Documentation

◆ condition_variable() [1/2]

mingw_stdthread::vista::condition_variable::condition_variable ( void  )
inline

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

◆ ~condition_variable()

mingw_stdthread::vista::condition_variable::~condition_variable ( void  )
default

◆ condition_variable() [2/2]

mingw_stdthread::vista::condition_variable::condition_variable ( const condition_variable )
delete

Member Function Documentation

◆ after_wait()

template<typename MTX >
static void mingw_stdthread::vista::condition_variable::after_wait ( MTX *  pmutex)
inlinestaticprotected

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

◆ before_wait()

template<typename MTX >
static void mingw_stdthread::vista::condition_variable::before_wait ( MTX *  pmutex)
inlinestaticprotected

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

◆ native_handle()

native_handle_type mingw_stdthread::vista::condition_variable::native_handle ( void  )
inline

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

◆ notify_all()

void mingw_stdthread::vista::condition_variable::notify_all ( void  )
inlinenoexcept

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

◆ notify_one()

void mingw_stdthread::vista::condition_variable::notify_one ( void  )
inlinenoexcept

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

◆ operator=()

condition_variable & mingw_stdthread::vista::condition_variable::operator= ( const condition_variable )
delete

◆ wait() [1/2]

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

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

◆ wait() [2/2]

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

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

◆ wait_for() [1/2]

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

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

◆ wait_for() [2/2]

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

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

◆ wait_impl() [1/2]

bool mingw_stdthread::vista::condition_variable::wait_impl ( unique_lock< windows7::mutex > &  lock,
DWORD  time 
)
inlineprotected

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

◆ wait_impl() [2/2]

bool mingw_stdthread::vista::condition_variable::wait_impl ( unique_lock< xp::mutex > &  lock,
DWORD  time 
)
inlineprotected

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

◆ wait_until() [1/2]

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

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

◆ wait_until() [2/2]

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

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

Member Data Documentation

◆ cvariable_

CONDITION_VARIABLE mingw_stdthread::vista::condition_variable::cvariable_
protected

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


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