diff options
Diffstat (limited to 'include/threadengines/threadengine_win32.h')
-rw-r--r-- | include/threadengines/threadengine_win32.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/threadengines/threadengine_win32.h b/include/threadengines/threadengine_win32.h index 1cebb50fe..bf8658853 100644 --- a/include/threadengines/threadengine_win32.h +++ b/include/threadengines/threadengine_win32.h @@ -38,6 +38,13 @@ class Thread; class CoreExport ThreadEngine { public: + /** Per-thread state, present in each Thread object, managed by the ThreadEngine + */ + struct ThreadState + { + HANDLE handle; + }; + static DWORD WINAPI Entry(void* parameter); /** Create a new thread. This takes an already allocated @@ -61,12 +68,6 @@ class CoreExport ThreadEngine void Stop(Thread* thread); }; -class CoreExport ThreadData -{ - public: - HANDLE handle; -}; - /** 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 |