aboutsummaryrefslogtreecommitdiff
path: root/src/3rdParty/efsw/platform/win/ThreadImpl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdParty/efsw/platform/win/ThreadImpl.hpp')
-rwxr-xr-xsrc/3rdParty/efsw/platform/win/ThreadImpl.hpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/3rdParty/efsw/platform/win/ThreadImpl.hpp b/src/3rdParty/efsw/platform/win/ThreadImpl.hpp
new file mode 100755
index 0000000..1afb593
--- /dev/null
+++ b/src/3rdParty/efsw/platform/win/ThreadImpl.hpp
@@ -0,0 +1,42 @@
1#ifndef EFSW_THREADIMPLWIN_HPP
2#define EFSW_THREADIMPLWIN_HPP
3
4#include <efsw/base.hpp>
5
6#if EFSW_PLATFORM == EFSW_PLATFORM_WIN32
7
8#ifndef WIN32_LEAN_AND_MEAN
9#define WIN32_LEAN_AND_MEAN
10#endif
11#include <process.h>
12#include <windows.h>
13
14namespace efsw {
15
16class Thread;
17
18namespace Platform {
19
20class ThreadImpl {
21 public:
22 ThreadImpl( Thread* owner );
23
24 ~ThreadImpl();
25
26 void wait();
27
28 void terminate();
29
30 protected:
31 static unsigned int __stdcall entryPoint( void* userData );
32
33 HANDLE mThread;
34 unsigned int mThreadId;
35};
36
37} // namespace Platform
38} // namespace efsw
39
40#endif
41
42#endif