summaryrefslogtreecommitdiff
path: root/include/threadengine.h
diff options
context:
space:
mode:
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
*/