4 #include "thread_private.h"
8 void Thread::platform_join()
10 pthread_join(priv_->handle, 0);
13 void Thread::platform_kill()
15 pthread_kill(priv_->handle, SIGKILL);
18 void Thread::platform_launch()
20 pthread_create(&priv_->handle, 0, &Private::main_wrapper, this);
23 void Thread::platform_setname()
25 #if defined(__GLIBC__) && (__GLIBC__>2 || (__GLIBC__==2 && __GLIBC_MINOR__>=12))
27 pthread_setname_np(priv_->handle, name_.c_str());