X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fthreadengine.cpp;h=c2976c0479c2340f00f475c819719185f9848d8b;hb=2553e4fff7a5a168ef796dcecb73c7365651c897;hp=a6e17afa090424a1567ca6c2fde14572041b2faf;hpb=6a869d0701bbfe3c7a5e370793adfda4b5b45c65;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/threadengine.cpp b/src/threadengine.cpp index a6e17afa0..c2976c047 100644 --- a/src/threadengine.cpp +++ b/src/threadengine.cpp @@ -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. @@ -20,11 +20,21 @@ #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() +{ +}