vdk 2.4.0
|
This class provides a simple thread implementation Actually is supported only POSIX THREAD. More...
#include <vdkthread.h>
This class provides a simple thread implementation Actually is supported only POSIX THREAD.
It is possible to use a VDKThread in two way:
class NewClass : public VDKThread { protected: void Execute () { // my code } public: NewClass (); ~NewsClass (); } //... NewClass thread; thread.Start();
void VDKThread::Exit | ( | void * | status = 0 | ) | [protected] |
Exit from the thread
unsigned int VDKThread::GetID | ( | ) | [inline] |
Return the thread ID.
VDKThreadEnum VDKThread::Start | ( | void * | arg = NULL | ) |
Start the thread.
VDKThreadEnum VDKThread::Stop | ( | ) |
Stops executing thread (command from other threads).
void * VDKThread::Wait | ( | ) |
Wait until the thread is terminated (it is used from other threads).
VDKThreadEnum VDKThread::state |
Store thread status.