diff options
Diffstat (limited to 'www/chromium/files/patch-base_threading_platform__thread__posix.cc')
-rw-r--r-- | www/chromium/files/patch-base_threading_platform__thread__posix.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/www/chromium/files/patch-base_threading_platform__thread__posix.cc b/www/chromium/files/patch-base_threading_platform__thread__posix.cc index a5a54bc38a4a..8e566d341465 100644 --- a/www/chromium/files/patch-base_threading_platform__thread__posix.cc +++ b/www/chromium/files/patch-base_threading_platform__thread__posix.cc @@ -1,6 +1,6 @@ ---- base/threading/platform_thread_posix.cc.orig 2025-09-06 10:01:20 UTC +--- base/threading/platform_thread_posix.cc.orig 2025-10-02 04:28:32 UTC +++ base/threading/platform_thread_posix.cc -@@ -79,6 +79,7 @@ void* ThreadFunc(void* params) { +@@ -80,6 +80,7 @@ void* ThreadFunc(void* params) { base::DisallowSingleton(); } @@ -8,7 +8,7 @@ #if PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC) partition_alloc::internal::StackTopRegistry::Get().NotifyThreadCreated(); #endif -@@ -92,6 +93,7 @@ void* ThreadFunc(void* params) { +@@ -93,6 +94,7 @@ void* ThreadFunc(void* params) { // where they were created. This explicitly sets the priority of all new // threads. PlatformThread::SetCurrentThreadType(thread_params->thread_type); @@ -16,7 +16,7 @@ } ThreadIdNameManager::GetInstance()->RegisterThread( -@@ -266,6 +268,8 @@ PlatformThreadId PlatformThreadBase::CurrentId() { +@@ -270,6 +272,8 @@ PlatformThreadId PlatformThreadBase::CurrentId() { #elif BUILDFLAG(IS_POSIX) && BUILDFLAG(IS_AIX) return PlatformThreadId(pthread_self()); @@ -25,7 +25,7 @@ #elif BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_AIX) return PlatformThreadId(reinterpret_cast<int64_t>(pthread_self())); #endif -@@ -359,6 +363,9 @@ void PlatformThreadBase::Detach(PlatformThreadHandle t +@@ -363,6 +367,9 @@ void PlatformThreadBase::Detach(PlatformThreadHandle t // static bool PlatformThreadBase::CanChangeThreadType(ThreadType from, ThreadType to) { @@ -35,7 +35,7 @@ if (from >= to) { // Decreasing thread priority on POSIX is always allowed. return true; -@@ -368,12 +375,18 @@ bool PlatformThreadBase::CanChangeThreadType(ThreadTyp +@@ -372,12 +379,18 @@ bool PlatformThreadBase::CanChangeThreadType(ThreadTyp } return internal::CanLowerNiceTo(internal::ThreadTypeToNiceValue(to)); @@ -54,7 +54,7 @@ if (internal::SetCurrentThreadTypeForPlatform(thread_type, pump_type_hint)) { return; } -@@ -389,12 +402,17 @@ void SetCurrentThreadTypeImpl(ThreadType thread_type, +@@ -393,12 +406,17 @@ void SetCurrentThreadTypeImpl(ThreadType thread_type, DVPLOG(1) << "Failed to set nice value of thread (" << PlatformThread::CurrentId() << ") to " << nice_setting; } @@ -72,7 +72,7 @@ // Mirrors SetCurrentThreadPriority()'s implementation. auto platform_specific_priority = internal::GetCurrentThreadPriorityForPlatformForTest(); // IN-TEST -@@ -405,6 +423,7 @@ ThreadPriorityForTest PlatformThreadBase::GetCurrentTh +@@ -409,6 +427,7 @@ ThreadPriorityForTest PlatformThreadBase::GetCurrentTh int nice_value = internal::GetCurrentThreadNiceValue(); return internal::NiceValueToThreadPriorityForTest(nice_value); // IN-TEST |