]> git.tdb.fi Git - libs/core.git/blob - source/core/unix/thread.cpp
e7d7f58596e94d3eba13cfc5db65ed28032c7530
[libs/core.git] / source / core / unix / thread.cpp
1 #include <pthread.h>
2 #include <signal.h>
3 #include "thread.h"
4 #include "thread_private.h"
5
6 using namespace std;
7
8 namespace Msp {
9
10 void Thread::platform_join()
11 {
12         pthread_join(priv_->handle, 0);
13 }
14
15 void Thread::platform_kill()
16 {
17         pthread_kill(priv_->handle, SIGKILL);
18 }
19
20 void Thread::platform_launch()
21 {
22         pthread_create(&priv_->handle, 0, &Private::main_wrapper, this);
23 }
24
25 } // namespace Msp