]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/threadengine.cpp
Fall back to copying bind IP if getsockname() fails, as it apparently can on Windows
[user/henk/code/inspircd.git] / src / threadengine.cpp
index e7a316282720571d2a1282b2839fd055aa728fd3..4ea95bcf0a5aaac29ad1e57968e747c142f0ba77 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
 #include "inspircd.h"
 #include "threadengine.h"
 
+void Thread::SetExitFlag()
+{
+       ExitFlag = true;
+}
 
+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()
+{
+}