summaryrefslogtreecommitdiff
path: root/include/threadengine.h
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 /include/threadengine.h
parent18bd33f9a477f7ce00d6f3c00acc0b0b68f5028d (diff)
Split db_mysql_live into two modules so other modules can make use of the asynchronous command interface
Diffstat (limited to 'include/threadengine.h')
-rw-r--r--include/threadengine.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/threadengine.h b/include/threadengine.h
index 822774c6e..20e3c81eb 100644
--- a/include/threadengine.h
+++ b/include/threadengine.h
@@ -45,7 +45,7 @@ class CoreExport Thread : public Extensible
{
private:
/* Set to true to tell the thread to finish and we are waiting for it */
- bool Exit;
+ bool exit;
public:
/* Handle for this thread */
@@ -67,6 +67,10 @@ class CoreExport Thread : public Extensible
*/
void SetExitState();
+ /** Exit the thread. Note that the thread still must be joined to free resources!
+ */
+ void Exit();
+
/** Returns the exit state of the thread
* @return true if we want to exit
*/