CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
NSROOT::OS::Thread Class Referenceabstract
Inheritance diagram for NSROOT::OS::Thread:
Collaboration diagram for NSROOT::OS::Thread:

Data Structures

struct  Handle

Public Member Functions

 Thread (const Thread &_thread)
Thread & operator= (const Thread &_thread)
thread_t * native_handle ()
bool start_thread (bool wait=true)
void stop_thread (bool wait=true)
bool wait_thread (unsigned millisec)
bool is_running ()
bool is_stopped ()
void pause (unsigned millisec)
void wake ()

Protected Member Functions

virtual void * process (void)=0
virtual void finalize (void)

Protected Attributes

bool m_finalizeOnStop

Static Private Member Functions

static void * ThreadHandler (void *_thread)

Private Attributes

Handlem_handle

Detailed Description

Definition at line 32 of file thread.h.

Constructor & Destructor Documentation

◆ Thread() [1/2]

NSROOT::OS::Thread::Thread ( )
inline

Definition at line 35 of file thread.h.

◆ ~Thread()

virtual NSROOT::OS::Thread::~Thread ( )
inlinevirtual

Definition at line 39 of file thread.h.

◆ Thread() [2/2]

NSROOT::OS::Thread::Thread ( const Thread & _thread)
inline

Definition at line 44 of file thread.h.

Member Function Documentation

◆ finalize()

virtual void NSROOT::OS::Thread::finalize ( void )
inlineprotectedvirtual

Definition at line 133 of file thread.h.

◆ is_running()

bool NSROOT::OS::Thread::is_running ( )
inline

Definition at line 104 of file thread.h.

◆ is_stopped()

bool NSROOT::OS::Thread::is_stopped ( )
inline

Definition at line 110 of file thread.h.

◆ native_handle()

thread_t * NSROOT::OS::Thread::native_handle ( )
inline

Definition at line 61 of file thread.h.

◆ operator=()

Thread & NSROOT::OS::Thread::operator= ( const Thread & _thread)
inline

Definition at line 50 of file thread.h.

◆ pause()

void NSROOT::OS::Thread::pause ( unsigned millisec)
inline

Definition at line 116 of file thread.h.

◆ start_thread()

bool NSROOT::OS::Thread::start_thread ( bool wait = true)
inline

Definition at line 66 of file thread.h.

◆ stop_thread()

void NSROOT::OS::Thread::stop_thread ( bool wait = true)
inline

Definition at line 82 of file thread.h.

◆ ThreadHandler()

void * NSROOT::OS::Thread::ThreadHandler ( void * _thread)
inlinestaticprivate

Definition at line 159 of file thread.h.

◆ wait_thread()

bool NSROOT::OS::Thread::wait_thread ( unsigned millisec)
inline

Definition at line 98 of file thread.h.

◆ wake()

void NSROOT::OS::Thread::wake ( )
inline

Definition at line 124 of file thread.h.

Field Documentation

◆ m_finalizeOnStop

bool NSROOT::OS::Thread::m_finalizeOnStop
protected

Definition at line 134 of file thread.h.

◆ m_handle

Handle* NSROOT::OS::Thread::m_handle
private

Definition at line 157 of file thread.h.


The documentation for this class was generated from the following file:
  • /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/private/os/threads/thread.h