parent
44282bc151
commit
11fe823bbd
|
@ -314,8 +314,8 @@ void sthread_setname(sthread_t *thread, const char *name)
|
||||||
{
|
{
|
||||||
if (!thread)
|
if (!thread)
|
||||||
return;
|
return;
|
||||||
// TODO: implement that for Windows too.
|
// TODO: implement that for Windows (and Mac?) too.
|
||||||
#ifndef USE_WIN32_THREADS
|
#if !defined(USE_WIN32_THREADS) && !defined(__APPLE__)
|
||||||
pthread_setname_np(thread->id, name);
|
pthread_setname_np(thread->id, name);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue