diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-24 12:46:18 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-24 12:46:18 +0200 |
commit | f8d18d82c707f4ac2de04e96fe55cdfd39374bbc (patch) | |
tree | b1f9d9ed9641ac92cdbd07ff8db55bd311b832ec /include | |
parent | 36b9b4b39900d1b2e3b182e1b50370b0c9dcb9ae (diff) |
Make Thread::state private
Diffstat (limited to 'include')
-rw-r--r-- | include/threadengine.h | 13 |
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) |