1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| #ifndef EFSW_THREADIMPLWIN_HPP
| #define EFSW_THREADIMPLWIN_HPP
|
| #include <efsw/base.hpp>
|
| #if EFSW_PLATFORM == EFSW_PLATFORM_WIN32
|
| #ifndef WIN32_LEAN_AND_MEAN
| #define WIN32_LEAN_AND_MEAN
| #endif
| #include <windows.h>
| #include <process.h>
|
| namespace efsw {
|
| class Thread;
|
| namespace Platform {
|
| class ThreadImpl
| {
| public:
| ThreadImpl( Thread * owner );
|
| ~ThreadImpl();
|
| void wait();
|
| void terminate();
| protected:
| static unsigned int __stdcall entryPoint(void* userData);
|
| HANDLE mThread;
| unsigned int mThreadId;
| };
|
| }}
|
| #endif
|
| #endif
|
|