diff options
Diffstat (limited to 'src/threadengine.cpp')
-rw-r--r-- | src/threadengine.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
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; - } } |