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