Dobby  3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
AICommon::ConditionVariable Class Reference

Public Types

typedef pthread_cond_t * native_handle_type
 

Public Member Functions

 ConditionVariable (const ConditionVariable &)=delete
 
 ConditionVariable (const ConditionVariable &&)=delete
 
void notify_one ()
 
void notify_all ()
 
void wait (std::unique_lock< AICommon::Mutex > &lock)
 
template<class Predicate >
void wait (std::unique_lock< AICommon::Mutex > &lock, Predicate pred)
 
template<class Rep , class Period >
std::cv_status wait_for (std::unique_lock< AICommon::Mutex > &lock, const std::chrono::duration< Rep, Period > &rel_time)
 
template<class Rep , class Period , class Predicate >
bool wait_for (std::unique_lock< AICommon::Mutex > &lock, const std::chrono::duration< Rep, Period > &rel_time, Predicate pred)
 
std::cv_status wait_until (std::unique_lock< AICommon::Mutex > &lock, const std::chrono::time_point< std::chrono::steady_clock > &timeout_time)
 
template<class Predicate >
bool wait_until (std::unique_lock< AICommon::Mutex > &lock, const std::chrono::time_point< std::chrono::steady_clock > &timeout_time, Predicate pred)
 
native_handle_type native_handle ()
 

Private Member Functions

struct timespec calcTimeoutAbs (const std::chrono::nanoseconds &rel_time)
 
struct timespec calcTimeoutRel (const std::chrono::nanoseconds &rel_time)
 

Private Attributes

pthread_cond_t mCond
 

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