![]() |
Kochol Game Engine
0.1.0
|
#include <TaskManagerThread.h>
Public Member Functions | |
TaskManagerThread () | |
Constructor. | |
~TaskManagerThread () | |
Destructor. | |
int | ThreadProc () |
Thread function for internal use. | |
int | GetTaskCount () |
Returns the Task count in queue. | |
int | AddTask (Task *pTask) |
![]() | |
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. |
Protected Attributes | |
TSQueue< Task * > | m_TaskQueue |
Task count in queue. | |
![]() | |
bool | m_bIsRunning |
Is thread running. | |
SDL_Thread * | m_pSdlThread |
This class is used by TaskManager class for running threads.
Definition at line 16 of file TaskManagerThread.h.
kge::core::TaskManagerThread::TaskManagerThread | ( | ) |
Constructor.
kge::core::TaskManagerThread::~TaskManagerThread | ( | ) |
Destructor.
int kge::core::TaskManagerThread::AddTask | ( | Task * | pTask | ) |
Adds a new task to queue
|
inline |
Returns the Task count in queue.
Definition at line 30 of file TaskManagerThread.h.
|
virtual |
Thread function for internal use.
Implements kge::core::KgeThread.
Task count in queue.
Definition at line 39 of file TaskManagerThread.h.