Commit 2f873edc authored by Max Kellermann's avatar Max Kellermann

thread/Name: implementation for Mac OS X

pthread_setname_np() doesn't have the "thread" argument on OS X.
parent d5f46a84
......@@ -29,7 +29,11 @@ static inline void
SetThreadName(const char *name)
{
#ifdef HAVE_PTHREAD_SETNAME_NP
#ifdef __APPLE__
pthread_setname_np(name);
#else
pthread_setname_np(pthread_self(), name);
#endif
#else
(void)name;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment