aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_threading_platform__thread__posix.cc
blob: 071a25201e45e575c876586a4ccc72d82ac5452d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- base/threading/platform_thread_posix.cc.orig	2022-02-07 13:39:41 UTC
+++ base/threading/platform_thread_posix.cc
@@ -74,7 +74,7 @@ void* ThreadFunc(void* params) {
     if (!thread_params->joinable)
       base::DisallowSingleton();
 
-#if !defined(OS_NACL)
+#if !defined(OS_NACL) && !defined(OS_BSD)
 #if BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
     internal::PCScan::NotifyThreadCreated(internal::GetStackPointer());
 #endif
@@ -333,6 +333,9 @@ bool PlatformThread::CanChangeThreadPriority(ThreadPri
 // static
 void PlatformThread::SetCurrentThreadPriorityImpl(ThreadPriority priority) {
 #if defined(OS_NACL)
+  NOTIMPLEMENTED();
+// avoid pledge(2) violation
+#elif defined(OS_BSD)
   NOTIMPLEMENTED();
 #else
   if (internal::SetCurrentThreadPriorityForPlatform(priority))