Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
XbmcThreads::ConditionVariable Class Reference

#include <Condition.h>

Public Member Functions

 ConditionVariable ()=default
 
void wait (CCriticalSection &lock)
 
template<typename Rep , typename Period >
bool wait (CCriticalSection &lock, std::chrono::duration< Rep, Period > duration)
 
void wait (CSingleLock &lock)
 
template<typename Rep , typename Period >
bool wait (CSingleLock &lock, std::chrono::duration< Rep, Period > duration)
 
void notifyAll ()
 
void notify ()
 

Detailed Description

This is a thin wrapper around std::condition_variable_any. It is subject to "spurious returns"

Constructor & Destructor Documentation

◆ ConditionVariable()

XbmcThreads::ConditionVariable::ConditionVariable ( )
default

Member Function Documentation

◆ notify()

void XbmcThreads::ConditionVariable::notify ( )
inline

◆ notifyAll()

void XbmcThreads::ConditionVariable::notifyAll ( )
inline

◆ wait() [1/4]

void XbmcThreads::ConditionVariable::wait ( CCriticalSection lock)
inline

◆ wait() [2/4]

template<typename Rep , typename Period >
bool XbmcThreads::ConditionVariable::wait ( CCriticalSection lock,
std::chrono::duration< Rep, Period >  duration 
)
inline

◆ wait() [3/4]

void XbmcThreads::ConditionVariable::wait ( CSingleLock lock)
inline

◆ wait() [4/4]

template<typename Rep , typename Period >
bool XbmcThreads::ConditionVariable::wait ( CSingleLock lock,
std::chrono::duration< Rep, Period >  duration 
)
inline

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