![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
#include <Timer.h>
Public Member Functions | |
CTimer (ITimerCallback *callback) | |
CTimer (std::function< void()> const &callback) | |
~CTimer () override | |
bool | Start (uint32_t timeout, bool interval=false) |
bool | Stop (bool wait=false) |
bool | Restart () |
void | RestartAsync (uint32_t timeout) |
bool | IsRunning () const |
float | GetElapsedSeconds () const |
float | GetElapsedMilliseconds () const |
Protected Member Functions | |
void | Process () override |
![]() | |
CThread (const char *ThreadName) | |
virtual void | OnStartup () |
virtual void | OnExit () |
WaitResponse | AbortableWait (CEvent &event, int timeoutMillis=-1) |
CThread (IRunnable *pRunnable, const char *ThreadName) | |
virtual | ~CThread () |
void | Create (bool bAutoDelete=false, unsigned stacksize=0) |
void | Sleep (unsigned int milliseconds) |
int | GetSchedRRPriority (void) |
bool | SetPrioritySched_RR (int iPriority) |
bool | IsAutoDelete () const |
virtual void | StopThread (bool bWait=true) |
bool | IsRunning () const |
bool | IsCurrentThread () const |
int | GetMinPriority (void) |
int | GetMaxPriority (void) |
int | GetNormalPriority (void) |
int | GetPriority (void) |
bool | SetPriority (const int iPriority) |
bool | WaitForThreadExit (unsigned int milliseconds) |
float | GetRelativeUsage () |
int64_t | GetAbsoluteUsage () |
virtual void | OnException () |
Additional Inherited Members | |
![]() | |
enum | WaitResponse { WAIT_INTERRUPTED = -1 , WAIT_SIGNALED = 0 , WAIT_TIMEDOUT = 1 } |
![]() | |
static bool | IsCurrentThread (const ThreadIdentifier tid) |
static ThreadIdentifier | GetCurrentThreadId () |
static ThreadIdentifier | GetDisplayThreadId (const ThreadIdentifier tid) |
static CThread * | GetCurrentThread () |
![]() | |
std::atomic< bool > | m_bStop |
|
explicit |
|
explicit |
|
override |
float CTimer::GetElapsedMilliseconds | ( | ) | const |
float CTimer::GetElapsedSeconds | ( | ) | const |
|
inline |
bool CTimer::Restart | ( | ) |
void CTimer::RestartAsync | ( | uint32_t | timeout | ) |
bool CTimer::Start | ( | uint32_t | timeout, |
bool | interval = false |
||
) |
bool CTimer::Stop | ( | bool | wait = false | ) |