![]() |
Kochol Game Engine
0.1.0
|
KGE thread interface. More...
#include <KgeThread.h>
Public Member Functions | |
| KgeThread () | |
| Constructor. | |
| virtual | ~KgeThread () |
| Destructor. | |
| void | Begin () |
| Create a thread and run it. | |
| void | End () |
| Ends the thread and destroy it. Wait for the thread to end. | |
| bool | IsRunning () |
| Is thread running. | |
| virtual int | ThreadProc ()=0 |
| Thread function for internal use. | |
Protected Attributes | |
| bool | m_bIsRunning |
| Is thread running. | |
| SDL_Thread * | m_pSdlThread |
KGE thread interface.
Definition at line 14 of file KgeThread.h.
| kge::core::KgeThread::KgeThread | ( | ) |
Constructor.
|
virtual |
Destructor.
| void kge::core::KgeThread::Begin | ( | ) |
Create a thread and run it.
| void kge::core::KgeThread::End | ( | ) |
Ends the thread and destroy it. Wait for the thread to end.
|
inline |
Is thread running.
Definition at line 31 of file KgeThread.h.
|
pure virtual |
Thread function for internal use.
Implemented in kge::core::TaskManagerThread.
|
protected |
Is thread running.
Definition at line 38 of file KgeThread.h.
|
protected |
Definition at line 39 of file KgeThread.h.