]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/threadengine.cpp
Show IP of the user in the quit snomask [dKingston]
[user/henk/code/inspircd.git] / src / threadengine.cpp
index d15ae2f7058b63a481c6105c9fcb544d8539c589..c2976c0479c2340f00f475c819719185f9848d8b 100644 (file)
 #include "inspircd.h"
 #include "threadengine.h"
 
-ThreadEngine::ThreadEngine(InspIRCd* Instance) : ServerInstance(Instance)
+void Thread::SetExitFlag()
 {
+       ExitFlag = true;
 }
 
-ThreadEngine::~ThreadEngine()
+void Thread::join()
 {
+               state->FreeThread(this);
+               delete state;
+               state = 0;
 }
 
-Mutex::Mutex()
+/** If this thread has a Creator set, call it to
+ * free the thread
+ */
+Thread::~Thread()
 {
 }