Differential D38165 Diff 118368 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 2019-05-23 12:39:34 UTC | --- src/3rdparty/chromium/base/threading/platform_thread_linux.cc.orig 2021-12-15 16:12:54 UTC | ||||
+++ src/3rdparty/chromium/base/threading/platform_thread_linux.cc | +++ src/3rdparty/chromium/base/threading/platform_thread_linux.cc | ||||
@@ -18,7 +18,9 @@ | @@ -24,7 +24,9 @@ | ||||
#if !defined(OS_NACL) && !defined(OS_AIX) | #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> | ||||
@@ -99,7 +101,7 @@ const ThreadPriorityToNiceValuePair kThreadPriorityToN | @@ -264,7 +266,7 @@ Optional<bool> CanIncreaseCurrentThreadPriorityForPlat | ||||
Optional<bool> CanIncreaseCurrentThreadPriorityForPlatform( | Optional<bool> CanIncreaseCurrentThreadPriorityForPlatform( | ||||
ThreadPriority priority) { | ThreadPriority priority) { | ||||
-#if !defined(OS_NACL) | -#if !defined(OS_NACL) | ||||
+#if !defined(OS_NACL) && !defined(OS_BSD) | +#if !defined(OS_NACL) && !defined(OS_BSD) | ||||
// A non-zero soft-limit on RLIMIT_RTPRIO is required to be allowed to invoke | // A non-zero soft-limit on RLIMIT_RTPRIO is required to be allowed to invoke | ||||
// pthread_setschedparam in SetCurrentThreadPriorityForPlatform(). | // pthread_setschedparam in SetCurrentThreadPriorityForPlatform(). | ||||
struct rlimit rlim; | struct rlimit rlim; | ||||
@@ -141,7 +143,7 @@ Optional<ThreadPriority> GetCurrentThreadPriorityForPl | @@ -314,7 +316,7 @@ void PlatformThread::SetName(const std::string& name) | ||||
void PlatformThread::SetName(const std::string& name) { | void PlatformThread::SetName(const std::string& name) { | ||||
ThreadIdNameManager::GetInstance()->SetName(name); | ThreadIdNameManager::GetInstance()->SetName(name); | ||||
-#if !defined(OS_NACL) && !defined(OS_AIX) | -#if !defined(OS_NACL) && !defined(OS_AIX) | ||||
+#if !defined(OS_NACL) && !defined(OS_AIX) && !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 |