aboutsummaryrefslogtreecommitdiff
path: root/devel/electron33/files/patch-base_threading_platform__thread__posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron33/files/patch-base_threading_platform__thread__posix.cc')
-rw-r--r--devel/electron33/files/patch-base_threading_platform__thread__posix.cc53
1 files changed, 0 insertions, 53 deletions
diff --git a/devel/electron33/files/patch-base_threading_platform__thread__posix.cc b/devel/electron33/files/patch-base_threading_platform__thread__posix.cc
deleted file mode 100644
index 3e646ccc65c2..000000000000
--- a/devel/electron33/files/patch-base_threading_platform__thread__posix.cc
+++ /dev/null
@@ -1,53 +0,0 @@
---- base/threading/platform_thread_posix.cc.orig 2024-06-18 21:43:18 UTC
-+++ base/threading/platform_thread_posix.cc
-@@ -77,11 +77,11 @@ void* ThreadFunc(void* params) {
- if (!thread_params->joinable)
- base::DisallowSingleton();
-
--#if PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
-+#if PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC) && !BUILDFLAG(IS_BSD)
- partition_alloc::internal::StackTopRegistry::Get().NotifyThreadCreated();
- #endif
-
--#if !BUILDFLAG(IS_NACL)
-+#if !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_BSD)
- #if BUILDFLAG(IS_APPLE)
- PlatformThread::SetCurrentThreadRealtimePeriodValue(
- delegate->GetRealtimePeriod());
-@@ -265,6 +265,8 @@ PlatformThreadId PlatformThreadBase::CurrentId() {
- return reinterpret_cast<int32_t>(pthread_self());
- #elif BUILDFLAG(IS_POSIX) && BUILDFLAG(IS_AIX)
- return pthread_self();
-+#elif BUILDFLAG(IS_BSD)
-+ return reinterpret_cast<uint64_t>(pthread_self());
- #elif BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_AIX)
- return reinterpret_cast<int64_t>(pthread_self());
- #endif
-@@ -355,7 +357,7 @@ bool PlatformThreadBase::CanChangeThreadType(ThreadTyp
-
- // static
- bool PlatformThreadBase::CanChangeThreadType(ThreadType from, ThreadType to) {
--#if BUILDFLAG(IS_NACL)
-+#if BUILDFLAG(IS_NACL) || BUILDFLAG(IS_BSD)
- return false;
- #else
- if (from >= to) {
-@@ -376,6 +378,9 @@ void SetCurrentThreadTypeImpl(ThreadType thread_type,
- MessagePumpType pump_type_hint) {
- #if BUILDFLAG(IS_NACL)
- NOTIMPLEMENTED();
-+// avoid pledge(2) violation
-+#elif BUILDFLAG(IS_BSD)
-+ NOTIMPLEMENTED();
- #else
- if (internal::SetCurrentThreadTypeForPlatform(thread_type, pump_type_hint))
- return;
-@@ -398,7 +403,7 @@ ThreadPriorityForTest PlatformThreadBase::GetCurrentTh
-
- // static
- ThreadPriorityForTest PlatformThreadBase::GetCurrentThreadPriorityForTest() {
--#if BUILDFLAG(IS_NACL)
-+#if BUILDFLAG(IS_NACL) || BUILDFLAG(IS_BSD)
- NOTIMPLEMENTED();
- return ThreadPriorityForTest::kNormal;
- #else