CThread Class Reference
#include <Thread.h>
List of all members.
Constructor & Destructor Documentation
CThread::CThread |
( |
void |
|
) |
|
CThread instanciates thread object and starts thread.
CThread::~CThread |
( |
void |
|
) |
|
~CThread destructor. Stop should be called prior to destruction to allow for gracefull thread termination.
Member Function Documentation
BOOL CThread::Empty |
( |
|
) |
[private] |
Empty returns a value of true if there are no items on the threads que otherwise a value of false is returned.
Event wakes up a thread to process data
DWORD CThread::GetErrorFlags |
( |
|
) |
[inline] |
unsigned int CThread::GetEventsPending |
( |
|
) |
|
GetEventsPending returns the total number of vents waiting in the event que
BOOL CThread::KernelProcess |
( |
|
) |
|
KernelProcess routes thread activity
BOOL CThread::OnTask |
( |
|
) |
[virtual] |
BOOL CThread::PingThread |
( |
DWORD |
dwTimeout = 0 |
) |
|
PingThread used to determine if a thread is running
BOOL CThread::Pop |
( |
|
) |
[private] |
Pop move an object from the input que to the processor
Push place a data object in the threads que
void CThread::SetIdle |
( |
DWORD |
dwIdle = 100 |
) |
|
SetIdle changes the threads idle interval
void CThread::SetPriority |
( |
DWORD |
dwPriority = 0 |
) |
|
SetPriority sets a threads run priority, see SetThreadPriority Note: only works for Windows family of operating systems
void CThread::SetThreadType |
( |
ThreadType_t |
typ = ThreadTypeEventDriven , |
|
|
DWORD |
dwIdle = 100 | |
|
) |
| | |
SetThreadType specifies the type of threading that is to be performed.
ThreadTypeEventDriven (default): an event must be physically sent to the thread using the Event member function.
ThreadTypeIntervalDriven : an event occurs automatically every dwIdle milli seconds.
static ThreadId_t CThread::ThreadId |
( |
|
) |
[inline, static] |
ThreadState return the current state of the thread
Friends And Related Function Documentation
_THKERNEL thread callback function used by CreateThread
Member Data Documentation
user definable member functions
The documentation for this class was generated from the following files:
- /home/gomez/Documents/workspaces/treqs/treqs/src/ThreadObject/Thread.h
- /home/gomez/Documents/workspaces/treqs/treqs/src/ThreadObject/Thread.cpp