From c4cea5a1316c2be34791d23969d22f2d658749bc Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 3 May 2013 17:14:24 +0100 Subject: [PATCH] Thread-naming fix for linux. --- modules/juce_core/native/juce_posix_SharedCode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_core/native/juce_posix_SharedCode.h b/modules/juce_core/native/juce_posix_SharedCode.h index 5f05a27542..74d1f0304a 100644 --- a/modules/juce_core/native/juce_posix_SharedCode.h +++ b/modules/juce_core/native/juce_posix_SharedCode.h @@ -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 }