Fix SetThreadName on apple
This commit is contained in:
@@ -22,6 +22,8 @@ namespace openVulkanoCpp
|
|||||||
auto thisThread = ::GetCurrentThread();
|
auto thisThread = ::GetCurrentThread();
|
||||||
std::wstring namew(name.begin(), name.end());
|
std::wstring namew(name.begin(), name.end());
|
||||||
SetThreadDescription(thisThread, namew.c_str());
|
SetThreadDescription(thisThread, namew.c_str());
|
||||||
|
#elif __APPLE__
|
||||||
|
pthread_setname_np(name.c_str());
|
||||||
#else
|
#else
|
||||||
pthread_setname_np(pthread_self(), name.c_str());
|
pthread_setname_np(pthread_self(), name.c_str());
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user