X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fthreadengine.cpp;h=c2976c0479c2340f00f475c819719185f9848d8b;hb=7c340cba11b16d3c4a95c274c22f1617ac4711f2;hp=d15ae2f7058b63a481c6105c9fcb544d8539c589;hpb=7b6eae36661bc798f69b22393b85a4f06d533cf6;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/threadengine.cpp b/src/threadengine.cpp index d15ae2f70..c2976c047 100644 --- a/src/threadengine.cpp +++ b/src/threadengine.cpp @@ -20,14 +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; } -Mutex::Mutex() +/** If this thread has a Creator set, call it to + * free the thread + */ +Thread::~Thread() { }