diff options
| author | 2014-06-24 12:54:05 +0200 | |
|---|---|---|
| committer | 2014-06-24 12:54:05 +0200 | |
| commit | a77b9081d4e17bfe8b887073c09d531b2f4c4842 (patch) | |
| tree | 0fda17ee02ddbaefeb8e62922f1348edcd8f5a72 /include/threadengines/threadengine_pthread.h | |
| parent | Move and rename ThreadData::FreeThread() to ThreadEngine::Stop() and document... (diff) | |
Move and rename class ThreadData to ThreadEngine::ThreadState
Diffstat (limited to 'include/threadengines/threadengine_pthread.h')
| -rw-r--r-- | include/threadengines/threadengine_pthread.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/threadengines/threadengine_pthread.h b/include/threadengines/threadengine_pthread.h index 9304536f1..454e3ea4a 100644 --- a/include/threadengines/threadengine_pthread.h +++ b/include/threadengines/threadengine_pthread.h @@ -36,6 +36,13 @@ class CoreExport ThreadEngine { public: + /** Per-thread state, present in each Thread object, managed by the ThreadEngine + */ + struct ThreadState + { + pthread_t pthread_id; + }; + /** Create a new thread. This takes an already allocated * Thread* pointer and initializes it to use this threading * engine. On failure, this function may throw a CoreException. @@ -57,12 +64,6 @@ class CoreExport ThreadEngine void Stop(Thread* thread); }; -class CoreExport ThreadData -{ - public: - pthread_t pthread_id; -}; - /** The Mutex class represents a mutex, which can be used to keep threads * properly synchronised. Use mutexes sparingly, as they are a good source * of thread deadlocks etc, and should be avoided except where absolutely |
