]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/threadengine.cpp
Makefile updates: clean up command lines
[user/henk/code/inspircd.git] / src / threadengine.cpp
index 124102f0ccb055a9138b6f898077a3205c4fe665..c6128d13295efd0b7ea76ee2012ef2ca293821ed 100644 (file)
 #include "inspircd.h"
 #include "threadengine.h"
 
-ThreadEngine::ThreadEngine(InspIRCd* Instance) : ServerInstance(Instance)
-{
-}
-
-ThreadEngine::~ThreadEngine()
-{
-}
-
-Mutex::Mutex(InspIRCd* Instance) : ServerInstance(Instance)
+/** If this thread has a Creator set, call it to
+ * free the thread
+ */
+Thread::~Thread()
 {
+       if (state)
+       {
+               state->FreeThread(this);
+               delete state;
+       }
 }