From f8d18d82c707f4ac2de04e96fe55cdfd39374bbc Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 24 Jun 2014 12:46:18 +0200 Subject: Make Thread::state private --- include/threadengine.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'include') 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) -- cgit v1.2.3