]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/threadengine.cpp
Don't try quite so hard to writev() the entire buffer in one go
[user/henk/code/inspircd.git] / src / threadengine.cpp
index a6e17afa090424a1567ca6c2fde14572041b2faf..4ea95bcf0a5aaac29ad1e57968e747c142f0ba77 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-2010 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;
 }
 
+/** If this thread has a Creator set, call it to
+ * free the thread
+ */
+Thread::~Thread()
+{
+}