Differential D18757 Diff 55427 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_threading_platform__thread__linux.cc
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_threading_platform__thread__linux.cc
--- src/3rdparty/chromium/base/threading/platform_thread_linux.cc.orig 2017-01-26 00:49:07 UTC | --- src/3rdparty/chromium/base/threading/platform_thread_linux.cc.orig 2018-11-13 18:25:11 UTC | ||||
+++ src/3rdparty/chromium/base/threading/platform_thread_linux.cc | +++ src/3rdparty/chromium/base/threading/platform_thread_linux.cc | ||||
@@ -19,7 +19,9 @@ | @@ -18,7 +18,9 @@ | ||||
#if !defined(OS_NACL) | #if !defined(OS_NACL) && !defined(OS_AIX) | ||||
#include <pthread.h> | #include <pthread.h> | ||||
+#if !defined(OS_BSD) | +#if !defined(OS_BSD) | ||||
#include <sys/prctl.h> | #include <sys/prctl.h> | ||||
+#endif | +#endif | ||||
#include <sys/resource.h> | #include <sys/resource.h> | ||||
#include <sys/time.h> | #include <sys/time.h> | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
@@ -130,7 +132,7 @@ void PlatformThread::SetName(const std:: | @@ -128,7 +130,7 @@ bool GetCurrentThreadPriorityForPlatform(ThreadPriorit | ||||
ThreadIdNameManager::GetInstance()->SetName(CurrentId(), name); | void PlatformThread::SetName(const std::string& name) { | ||||
tracked_objects::ThreadData::InitializeThreadContext(name); | ThreadIdNameManager::GetInstance()->SetName(name); | ||||
-#if !defined(OS_NACL) | -#if !defined(OS_NACL) && !defined(OS_AIX) | ||||
+#if !defined(OS_NACL) && !defined(OS_BSD) | +#if !defined(OS_NACL) && !defined(OS_AIX) && !defined(OS_BSD) | ||||
// On linux we can get the thread names to show up in the debugger by setting | // On linux we can get the thread names to show up in the debugger by setting | ||||
// the process name for the LWP. We don't want to do this for the main | // the process name for the LWP. We don't want to do this for the main | ||||
// thread because that would rename the process, causing tools like killall | // thread because that would rename the process, causing tools like killall | ||||
@@ -150,7 +152,7 @@ void PlatformThread::SetName(const std:: | |||||
#endif // !defined(OS_NACL) | |||||
} | |||||
-#if !defined(OS_NACL) | |||||
+#if !defined(OS_NACL) && !defined(OS_BSD) | |||||
// static | |||||
void PlatformThread::SetThreadPriority(PlatformThreadId thread_id, | |||||
ThreadPriority priority) { |