]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/threadengine.cpp
Remove more text<->binary IP conversions, making code more IPv4/IPv6 independent
[user/henk/code/inspircd.git] / src / threadengine.cpp
index 49538f891326330fa180f56de6b63284edc2129d..c2976c0479c2340f00f475c819719185f9848d8b 100644 (file)
@@ -2,8 +2,8 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *         the file COPYING for details.
 #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(InspIRCd* Instance) : ServerInstance(Instance)
+/** If this thread has a Creator set, call it to
+ * free the thread
+ */
+Thread::~Thread()
 {
 }