pthread_create(&priv_->handle, 0, &Private::main_wrapper, this);
}
+void Thread::platform_setname()
+{
+#if defined(__GLIBC__) && (__GLIBC__>2 || (__GLIBC__==2 && __GLIBC_MINOR__>=12))
+ if(!name_.empty())
+ pthread_setname_np(priv_->handle, name_.c_str());
+#endif
+}
+
} // namespace Msp