summaryrefslogtreecommitdiff
path: root/src/threadengine.cpp
blob: f7e924fb6e2c3bf3a51eefb7d9b0351f9bb7c6a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "services.h"

ThreadEngine threadEngine;

/** Threads constructor
 */
Thread::Thread() : Exit(false)
{
}

/** Threads destructor
 */
Thread::~Thread()
{
	Join();
}

/** Sets the exit state as true informing the thread we want it to shut down
 */
void Thread::SetExitState()
{
	Exit = true;
}

/** Returns the exit state of the thread
 * @return true if we want to exit
 */
bool Thread::GetExitState() const
{
	return Exit;
}

/** Called to run the thread, should be overloaded
 */
void Thread::Run()
{
}