klMatrix
Public Types | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes
klThread< TYPE_MUTEX > Class Template Referenceabstract

#include <kl_util.h>

Inheritance diagram for klThread< TYPE_MUTEX >:
Inheritance graph
Collaboration diagram for klThread< TYPE_MUTEX >:
Collaboration graph

Public Types

enum  klThreadState { NOT_STARTED, RUNNING, TERMINATED }
 

Public Member Functions

 klThread ()
 
virtual ~klThread (void)
 
klThreadState getState (void)
 
klThreadId getThreadId (void)
 
bool setPriority (int relative_priority)
 
void launch (void)
 
virtual void run (void)=0
 
- Public Member Functions inherited from klRefCount< TYPE_MUTEX >
 klRefCount (void)
 
 ~klRefCount (void)
 
void addRef (void)
 
bool deleteRef (void)
 
 klRefCount (const klRefCount &obj)
 
klRefCountoperator= (const klRefCount &obj)
 
long useCount () const
 

Static Public Member Functions

static klThreadId getCurrentThreadId (void)
 
static bool waitForThread (klThreadId id)
 

Static Protected Member Functions

static unsigned __stdcall main (void *thread)
 

Protected Attributes

klThreadState state
 
klThreadId threadId
 

Member Enumeration Documentation

template<class TYPE_MUTEX>
enum klThread::klThreadState
Enumerator
NOT_STARTED 
RUNNING 
TERMINATED 

Constructor & Destructor Documentation

template<class TYPE_MUTEX>
klThread< TYPE_MUTEX >::klThread ( )
inline
template<class TYPE_MUTEX>
virtual klThread< TYPE_MUTEX >::~klThread ( void  )
inlinevirtual

Member Function Documentation

template<class TYPE_MUTEX>
static klThreadId klThread< TYPE_MUTEX >::getCurrentThreadId ( void  )
inlinestatic

Here is the caller graph for this function:

template<class TYPE_MUTEX>
klThreadState klThread< TYPE_MUTEX >::getState ( void  )
inline
template<class TYPE_MUTEX>
klThreadId klThread< TYPE_MUTEX >::getThreadId ( void  )
inline
template<class TYPE_MUTEX>
void klThread< TYPE_MUTEX >::launch ( void  )
inline
template<class TYPE_MUTEX>
static unsigned __stdcall klThread< TYPE_MUTEX >::main ( void *  thread)
inlinestaticprotected

Here is the caller graph for this function:

template<class TYPE_MUTEX>
virtual void klThread< TYPE_MUTEX >::run ( void  )
pure virtual

Implemented in klUnitTestThread.

Here is the caller graph for this function:

template<class TYPE_MUTEX>
bool klThread< TYPE_MUTEX >::setPriority ( int  relative_priority)
inline
template<class TYPE_MUTEX>
static bool klThread< TYPE_MUTEX >::waitForThread ( klThreadId  id)
inlinestatic

Field Documentation

template<class TYPE_MUTEX>
klThreadState klThread< TYPE_MUTEX >::state
protected
template<class TYPE_MUTEX>
klThreadId klThread< TYPE_MUTEX >::threadId
protected

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