Browse Source

Thread-naming fix for linux.

tags/2021-05-28
jules 12 years ago
parent
commit
c4cea5a131
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/native/juce_posix_SharedCode.h

+ 1
- 1
modules/juce_core/native/juce_posix_SharedCode.h View File

@@ -880,7 +880,7 @@ void Thread::setCurrentThreadName (const String& name)
[[NSThread currentThread] setName: juceStringToNS (name)];
}
#elif JUCE_LINUX
prctl (PR_SET_NAME, name.toRawUTF8(), 0, 0, 0);
pthread_setname_np (pthread_self(), name.toRawUTF8());
#endif
}


Loading…
Cancel
Save