Merge pull request #422 from MaddTheSane/patch-2

Update rthreads.c
This commit is contained in:
zeromus 2021-01-25 17:18:34 -05:00 committed by GitHub
commit 0942fb5c5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -314,8 +314,8 @@ void sthread_setname(sthread_t *thread, const char *name)
{
if (!thread)
return;
// TODO: implement that for Windows too.
#ifndef USE_WIN32_THREADS
// TODO: implement that for Windows (and Mac?) too.
#if !defined(USE_WIN32_THREADS) && !defined(__APPLE__)
pthread_setname_np(thread->id, name);
#endif
}