Kodi Development  20.0
for Binary and Script based Add-Ons

Inherited by CTimer [protected].

Public Member Functions

void CreateThread (bool autoDelete=false)
 Create a new thread defined by this class on child. More...
 
 CThread ()
 Class constructor. More...
 
bool IsAutoDelete () const
 Check auto delete is enabled on this thread class. More...
 
bool IsCurrentThread () const
 Check caller is on this running thread. More...
 
bool IsRunning () const
 Check thread inside this class is running and active. More...
 
bool Join (unsigned int milliseconds)
 The function returns when the thread execution has completed or timing is reached in milliseconds beforehand. More...
 
void Sleep (uint32_t milliseconds)
 Thread sleep with given amount of milliseconds. More...
 
void StopThread (bool wait=true)
 Stop a running thread. More...
 
virtual ~CThread ()
 Class destructor. More...
 

Protected Member Functions

virtual void Process ()=0
 The function to be added by the addon as a child to carry out the process thread. More...
 

Protected Attributes

std::atomic< bool > m_threadStop
 Atomic bool to indicate thread is active. More...
 

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