X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fthreadengine.cpp;h=c2976c0479c2340f00f475c819719185f9848d8b;hb=54e04fe36a275d1791595fe2cdf956d92bb671d7;hp=c6128d13295efd0b7ea76ee2012ef2ca293821ed;hpb=3debc17c519d42cb0c0e7154cdd9704eddd15fcc;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/threadengine.cpp b/src/threadengine.cpp index c6128d132..c2976c047 100644 --- a/src/threadengine.cpp +++ b/src/threadengine.cpp @@ -20,14 +20,21 @@ #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() { - if (state) - { - state->FreeThread(this); - delete state; - } }