summaryrefslogtreecommitdiff
path: root/src/threadengines/threadengine_win32.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-02-17 14:31:21 -0500
committerAdam <Adam@anope.org>2011-02-17 14:31:21 -0500
commit536ea2189ae1ff8bf05583ed03fac86797616ac9 (patch)
tree30b5056f53dea0d01be10f24360a443833e6565a /src/threadengines/threadengine_win32.cpp
parent18bd33f9a477f7ce00d6f3c00acc0b0b68f5028d (diff)
Split db_mysql_live into two modules so other modules can make use of the asynchronous command interface
Diffstat (limited to 'src/threadengines/threadengine_win32.cpp')
-rw-r--r--src/threadengines/threadengine_win32.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/threadengines/threadengine_win32.cpp b/src/threadengines/threadengine_win32.cpp
index e6ad725bf..218f711c4 100644
--- a/src/threadengines/threadengine_win32.cpp
+++ b/src/threadengines/threadengine_win32.cpp
@@ -31,6 +31,13 @@ void Thread::Join()
WaitForSingleObject(Handle, INFINITE);
}
+/** Exit the thread. Note that the thread still must be joined to free resources!
+ */
+void Thread::Exit()
+{
+ ExitThread(0);
+}
+
/** Start a new thread
* @param thread A pointer to a newley allocated thread
*/