diff options
author | Adam <Adam@drink-coca-cola.info> | 2010-05-09 17:50:53 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-18 21:00:04 -0400 |
commit | 4149afd45d2c0b9f464d1b4434f7bdaa61873d44 (patch) | |
tree | 7ecbfa99c159f9bbfc89d1ec36d1f84f166dd96a /src/threadengine_win32.cpp | |
parent | 6db15e17834163975f6122d3913d260d8327d516 (diff) |
Changed threadengine to delete threads after Joining them, so the whole thread exists when being joined and so its safe to call non-threadsafe functions in the destructor
Diffstat (limited to 'src/threadengine_win32.cpp')
-rw-r--r-- | src/threadengine_win32.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/threadengine_win32.cpp b/src/threadengine_win32.cpp index 602d8b809..d3c0303f5 100644 --- a/src/threadengine_win32.cpp +++ b/src/threadengine_win32.cpp @@ -6,6 +6,7 @@ void Thread::Join() { SetExitState(); WaitForSingleObject(Handle, INFINITE); + delete this; } /** Entry point for the thread |