X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Funix%2Fthread.cpp;h=3c17a9aabc8054c423253c115ba803325dc3de62;hp=26afeefc4300e0955b52ca72931c1c2b63eb0d16;hb=a4596d1c2f627e4568eb6c01d81b6e45f488715a;hpb=1fd05fc0d04adf7441ed3a83089e3b8716a72c20 diff --git a/source/core/unix/thread.cpp b/source/core/unix/thread.cpp index 26afeef..3c17a9a 100644 --- a/source/core/unix/thread.cpp +++ b/source/core/unix/thread.cpp @@ -20,4 +20,10 @@ void Thread::platform_launch() pthread_create(&priv_->handle, 0, &Private::main_wrapper, this); } +void Thread::platform_setname() +{ + if(!name_.empty()) + pthread_setname_np(priv_->handle, name_.c_str()); +} + } // namespace Msp