#include <BaseThread.hpp>
Inherited by CClient, CServer, and CServerClient.
Public Member Functions | |
| BaseThread () | |
| Konstruktor. | |
| bool | Start () |
| virtual int | Run () |
| virtual int | Terminate () |
| void | SetThreadPointer (SDL_Thread *pThread) |
| SDL_Thread * | GetThreadPointer () |
Static Protected Member Functions | |
| static int | StartThread (void *pThreadObject) |
Protected Attributes | |
| SDL_Thread * | m_pThread |
| Zeigen auf eigenen Thread. | |
| bool | m_bTerminate |
| true wenn Thread beendet werden soll | |
| bool | m_bDone |
| true wenn thread wirklich beendet wurde | |
| bool BaseThread::Start | ( | ) |
Thread starten
| int BaseThread::Run | ( | ) | [virtual] |
Funktion die in einem neuen Thread ausgefuehrt wird
Reimplemented in CClient, CServer, and CServerClient.
| int BaseThread::Terminate | ( | ) | [virtual] |
Den Thread beenden
| void BaseThread::SetThreadPointer | ( | SDL_Thread * | pThread | ) |
Setzt den Thread-Zeiger fuer sich selbst. Ist noetig, damit SDL_WaitThread() mittels GetThreadPointer() an den Thread kommt
| SDL_Thread * BaseThread::GetThreadPointer | ( | ) |
SDL_WaitThread() braucht das, damit es an den Thread kommt und darauf warten kann, dass sich der Thread ordentlich beendet
| int BaseThread::StartThread | ( | void * | pThreadObject | ) | [static, protected] |
Hilfsfunktion zum starten des Threads
| BaseThread-objekt | zum starten |
1.5.5