CellModules
mingw_stdthread::vista::condition_variable_any Class Reference

#include <mingw.condition_variable.h>

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

Public Types

typedef base::native_handle_type native_handle_type
 

Public Member Functions

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

Protected Types

typedef condition_variable base
 
typedef windows7::shared_mutex native_shared_mutex
 

Protected Member Functions

template<class L >
bool wait_impl (L &lock, DWORD time)
 
bool wait_impl (unique_lock< mutex > &lock, DWORD time)
 
bool wait_impl (unique_lock< native_shared_mutex > &lock, DWORD time)
 
bool wait_impl (shared_lock< native_shared_mutex > &lock, DWORD time)
 
bool wait_impl (unique_lock< xp::mutex > &lock, DWORD time)
 
bool wait_impl (unique_lock< windows7::mutex > &lock, DWORD time)
 
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)
 

Static Protected Member Functions

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

Protected Attributes

mutex internal_mutex_
 
CONDITION_VARIABLE cvariable_
 

Detailed Description

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

Member Typedef Documentation

◆ base

◆ native_handle_type

◆ native_shared_mutex

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

Constructor & Destructor Documentation

◆ condition_variable_any()

mingw_stdthread::vista::condition_variable_any::condition_variable_any ( void  )
inline

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

◆ ~condition_variable_any()

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

Member Function Documentation

◆ after_wait()

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

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

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.

◆ wait() [1/4]

template<class L >
void mingw_stdthread::vista::condition_variable_any::wait ( L &  lock)
inline

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

◆ wait() [2/4]

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

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

◆ wait() [3/4]

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

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

◆ wait() [4/4]

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

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

◆ wait_for() [1/4]

template<class L , class Rep , class Period >
cv_status mingw_stdthread::vista::condition_variable_any::wait_for ( L &  lock,
const std::chrono::duration< Rep, Period > &  period 
)
inline

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

◆ wait_for() [2/4]

template<class L , class Rep , class Period , class Predicate >
bool mingw_stdthread::vista::condition_variable_any::wait_for ( L &  lock,
const std::chrono::duration< Rep, Period > &  period,
Predicate  pred 
)
inline

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

◆ wait_for() [3/4]

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

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

◆ wait_for() [4/4]

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

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

◆ wait_impl() [1/6]

template<class L >
bool mingw_stdthread::vista::condition_variable_any::wait_impl ( L &  lock,
DWORD  time 
)
inlineprotected

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

◆ wait_impl() [2/6]

bool mingw_stdthread::vista::condition_variable_any::wait_impl ( shared_lock< native_shared_mutex > &  lock,
DWORD  time 
)
inlineprotected

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

◆ wait_impl() [3/6]

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

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

◆ wait_impl() [4/6]

bool mingw_stdthread::vista::condition_variable_any::wait_impl ( unique_lock< native_shared_mutex > &  lock,
DWORD  time 
)
inlineprotected

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

◆ wait_impl() [5/6]

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

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

◆ wait_impl() [6/6]

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

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

◆ wait_until() [1/4]

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

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

◆ wait_until() [2/4]

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

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

◆ wait_until() [3/4]

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

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

◆ wait_until() [4/4]

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

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

Member Data Documentation

◆ cvariable_

CONDITION_VARIABLE mingw_stdthread::vista::condition_variable::cvariable_
protectedinherited

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

◆ internal_mutex_

mutex mingw_stdthread::vista::condition_variable_any::internal_mutex_
protected

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


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