diff options
author | Moonchild <moonchild@palemoon.org> | 2022-06-27 08:02:42 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-06-27 08:02:42 +0000 |
commit | 7e5ab94e0c5643a3d3a2f20b63b8337af389b574 (patch) | |
tree | 07925fdd16da63416c0138cf58a10a533644ba81 /ipc | |
parent | 9a52ed3bfbf096225f5e8c5255d4c89c11529ebb (diff) | |
download | uxp-7e5ab94e0c5643a3d3a2f20b63b8337af389b574.tar.gz |
Issue #1053 - Follow-up: Correct conditional define on POSIX systems.
This conditional was incorrectly changed when removing Android support.
This potentially causes issues on Linux systems by not using pthreads correctly,
which may lead to high idle CPU usage.
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/chromium/src/base/condition_variable_posix.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ipc/chromium/src/base/condition_variable_posix.cc b/ipc/chromium/src/base/condition_variable_posix.cc index 58565541e8..4a8024c2bc 100644 --- a/ipc/chromium/src/base/condition_variable_posix.cc +++ b/ipc/chromium/src/base/condition_variable_posix.cc @@ -19,8 +19,7 @@ using base::TimeDelta; ConditionVariable::ConditionVariable(Lock* user_lock) : user_mutex_(user_lock->lock_impl()->os_lock()) { int rv = 0; -#if !defined(OS_MACOSX) && \ - defined(HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC) +#if !defined(OS_MACOSX) pthread_condattr_t attrs; rv = pthread_condattr_init(&attrs); DCHECK_EQ(0, rv); |