summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-24 12:46:18 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-24 12:46:18 +0200
commitf8d18d82c707f4ac2de04e96fe55cdfd39374bbc (patch)
treeb1f9d9ed9641ac92cdbd07ff8db55bd311b832ec /include
parent36b9b4b39900d1b2e3b182e1b50370b0c9dcb9ae (diff)
Make Thread::state private
Diffstat (limited to 'include')
-rw-r--r--include/threadengine.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/threadengine.h b/include/threadengine.h
index e656eb6b3..032da1539 100644
--- a/include/threadengine.h
+++ b/include/threadengine.h
@@ -38,6 +38,15 @@ class CoreExport Thread
/** Set to true when the thread is to exit
*/
bool ExitFlag;
+
+ /** Opaque thread state managed by the ThreadEngine
+ */
+ ThreadData state;
+
+ /** ThreadEngine manages Thread::state
+ */
+ friend class ThreadEngine;
+
protected:
/** Get thread's current exit status.
* (are we being asked to exit?)
@@ -47,10 +56,6 @@ class CoreExport Thread
return ExitFlag;
}
public:
- /** Opaque thread state managed by threading engine
- */
- ThreadData state;
-
/** Set Creator to NULL at this point
*/
Thread() : ExitFlag(false)