Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::core::KgeThread Class Reference

KGE thread interface. More...

#include <KgeThread.h>

Inheritance diagram for kge::core::KgeThread:
kge::core::TaskManagerThread

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

Detailed Description

KGE thread interface.

Definition at line 14 of file KgeThread.h.

Constructor & Destructor Documentation

kge::core::KgeThread::KgeThread ( )

Constructor.

virtual kge::core::KgeThread::~KgeThread ( )
virtual

Destructor.

Member Function Documentation

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.

bool kge::core::KgeThread::IsRunning ( )
inline

Is thread running.

Definition at line 31 of file KgeThread.h.

virtual int kge::core::KgeThread::ThreadProc ( )
pure virtual

Thread function for internal use.

Implemented in kge::core::TaskManagerThread.

Member Data Documentation

bool kge::core::KgeThread::m_bIsRunning
protected

Is thread running.

Definition at line 38 of file KgeThread.h.

SDL_Thread* kge::core::KgeThread::m_pSdlThread
protected

Definition at line 39 of file KgeThread.h.


The documentation for this class was generated from the following file: