mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-23 21:14:42 +00:00
Teach RenameThread to work on OSX
This commit is contained in:
parent
36fe96581f
commit
92f6fb4cfa
@ -1287,6 +1287,8 @@ void RenameThread(const char* name)
|
||||
// on FreeBSD or OpenBSD first. When verified the '0 &&' part can be
|
||||
// removed.
|
||||
pthread_set_name_np(pthread_self(), name);
|
||||
#elif defined(MAC_OSX)
|
||||
pthread_setname_np(name);
|
||||
#else
|
||||
// Prevent warnings for unused parameters...
|
||||
(void)name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user