]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/threadengine.cpp
...because every now and again, i have to do a massive commit.
[user/henk/code/inspircd.git] / src / threadengine.cpp
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
6  * See: http://wiki.inspircd.org/Credits
7  *
8  * This program is free but copyrighted software; see
9  *          the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 /* $Core */
15
16 /*********        DEFAULTS       **********/
17 /* $ExtraSources: threadengines/threadengine_pthread.cpp */
18 /* $ExtraObjects: threadengine_pthread.o */
19
20 #include "inspircd.h"
21 #include "threadengine.h"
22
23 void Thread::SetExitFlag()
24 {
25         ExitFlag = true;
26 }
27
28 void Thread::join()
29 {
30                 state->FreeThread(this);
31                 delete state;
32                 state = 0;
33 }
34
35 /** If this thread has a Creator set, call it to
36  * free the thread
37  */
38 Thread::~Thread()
39 {
40 }