
Public Member Functions | |
| mxThread () | |
| void | threadRun () |
| virtual int | threadExec ()=0 |
| void | threadStop () |
| void | threadWait () |
Protected Attributes | |
| SDL_Thread * | thread_identifier |
Definition at line 66 of file mxthread.h.
| mx::mxThread::mxThread | ( | ) |
| virtual int mx::mxThread::threadExec | ( | ) | [pure virtual] |
threadExec thread function
Implements mx::mxExec.
| void mx::mxThread::threadRun | ( | ) |
| void mx::mxThread::threadStop | ( | ) |
stop thread's execution
Definition at line 75 of file mxthread.cpp.
00076 { 00077 00078 if(thread_identifier != 0) 00079 SDL_KillThread(thread_identifier); 00080 00081 thread_identifier = 0; 00082 00083 }
| void mx::mxThread::threadWait | ( | ) |
wait for thread to finish
Definition at line 85 of file mxthread.cpp.
00086 { 00087 00088 if(thread_identifier != 0) 00089 SDL_WaitThread(thread_identifier, 0); 00090 00091 }
1.5.8