#include <MboThread.h>
Public Member Functions | |
MboIntervalThread (size_t nMilliSeconds=1000, const char *szThreadName=NULL) | |
virtual | ~MboIntervalThread () |
IncDecVal | GetCounter () const |
Protected Member Functions | |
virtual void | SetInterval (size_t nMilliSeconds=1000) |
virtual size_t | GetInterval () const |
The derived class MboIntervalThread implements an endless loop that sleeps for a given amount of time between each calls of Action(). The callbacks OnThreadStart()/OnThreadStop() are only called once.
Definition at line 324 of file MboThread.h.
mbo::MboIntervalThread::MboIntervalThread | ( | size_t | nMilliSeconds = 1000 , |
|
const char * | szThreadName = NULL | |||
) | [explicit] |
constructor
nMilliSeconds | interval between two thread cycles | |
szThreadName | The name of the thread. The new class instance will copy the value and free its copy automatically upon destruction. You may want to use NULL to use the class name of as the thread name. If you do so the name is computed in thread startup - this only works if this is not done in constructor. If done so the name you will see is the name of that parent class whose constructor started the thread. |
virtual mbo::MboIntervalThread::~MboIntervalThread | ( | ) | [virtual] |
destructor
IncDecVal mbo::MboIntervalThread::GetCounter | ( | ) | const |
virtual void mbo::MboIntervalThread::SetInterval | ( | size_t | nMilliSeconds = 1000 |
) | [protected, virtual] |
virtual size_t mbo::MboIntervalThread::GetInterval | ( | ) | const [protected, virtual] |
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:13 2008 for MBO-lib by ![]() |