Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
XbmcThreads::ConditionVariable Class Reference

#include <Condition.h>

Public Member Functions

 ConditionVariable ()=default
 
void wait (CCriticalSection &lock, std::function< bool()> predicate)
 
void wait (CCriticalSection &lock)
 
template<typename Rep , typename Period >
bool wait (CCriticalSection &lock, std::chrono::duration< Rep, Period > duration, std::function< bool()> predicate)
 
template<typename Rep , typename Period >
bool wait (CCriticalSection &lock, std::chrono::duration< Rep, Period > duration)
 
void wait (std::unique_lock< CCriticalSection > &lock, std::function< bool()> predicate)
 
void wait (std::unique_lock< CCriticalSection > &lock)
 
template<typename Rep , typename Period >
bool wait (std::unique_lock< CCriticalSection > &lock, std::chrono::duration< Rep, Period > duration, std::function< bool()> predicate)
 
template<typename Rep , typename Period >
bool wait (std::unique_lock< CCriticalSection > &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/8]

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

◆ wait() [2/8]

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

◆ wait() [3/8]

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

◆ wait() [4/8]

void XbmcThreads::ConditionVariable::wait ( CCriticalSection & lock,
std::function< bool()> predicate )
inline

◆ wait() [5/8]

void XbmcThreads::ConditionVariable::wait ( std::unique_lock< CCriticalSection > & lock)
inline

◆ wait() [6/8]

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

◆ wait() [7/8]

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

◆ wait() [8/8]

void XbmcThreads::ConditionVariable::wait ( std::unique_lock< CCriticalSection > & lock,
std::function< bool()> predicate )
inline

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