]> git.tdb.fi Git - libs/core.git/blob - source/core/windows/thread.cpp
Use _FILE_OFFSET_BITS rather than _LARGEFILE64_SOURCE
[libs/core.git] / source / core / windows / thread.cpp
1 #include <windows.h>
2 #include "thread.h"
3 #include "thread_private.h"
4
5 using namespace std;
6
7 namespace Msp {
8
9 void Thread::platform_join()
10 {
11         WaitForSingleObject(priv_->handle, INFINITE);
12 }
13
14 void Thread::platform_kill()
15 {
16         TerminateThread(priv_->handle, 0);
17 }
18
19 void Thread::platform_launch()
20 {
21         DWORD dummy;  // Win9x needs the lpTthreadId parameter
22         priv_->handle = CreateThread(0, 0, &Private::main_wrapper, this, 0, &dummy);
23 }
24
25 } // namespace Msp