Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ConditionPoll Namespace Reference

Functions

template<typename L>
bool poll (unsigned int timeoutMillis, L lambda)
 
template<typename L>
bool poll (L lambda)
 

Variables

constexpr unsigned int defaultTimeout {20000}
 

Function Documentation

◆ poll() [1/2]

template<typename L>
bool ConditionPoll::poll ( L lambda)
inline

poll until the lambda returns true or the defaultTimeout occurs. If the timeout occurs then the function will return false. Otherwise it will return true.

◆ poll() [2/2]

template<typename L>
bool ConditionPoll::poll ( unsigned int timeoutMillis,
L lambda )
inline

poll until the lambda returns true or the timeout occurs. If the timeout occurs then the function will return false. Otherwise it will return true.

Variable Documentation

◆ defaultTimeout

unsigned int ConditionPoll::defaultTimeout {20000}
constexpr

This is usually enough time for the condition to have occurred in a test.