]> git.armaanb.net Git - asd-repo.git/blob - extra/chromium/patches/musl-v8-monotonic-pthread-cont_timedwait.patch
Switch browser to Chromium
[asd-repo.git] / extra / chromium / patches / musl-v8-monotonic-pthread-cont_timedwait.patch
1 diff --git a/v8/src/base/platform/condition-variable.cc b/v8/src/base/platform/condition-variable.cc
2 index 04ea291..d121acd 100644
3 --- a/v8/src/base/platform/condition-variable.cc
4 +++ b/v8/src/base/platform/condition-variable.cc
5 @@ -16,7 +16,7 @@ namespace base {
6  
7  ConditionVariable::ConditionVariable() {
8  #if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
9 -     (V8_OS_LINUX && V8_LIBC_GLIBC))
10 +     V8_OS_LINUX)
11    // On Free/Net/OpenBSD and Linux with glibc we can change the time
12    // source for pthread_cond_timedwait() to use the monotonic clock.
13    pthread_condattr_t attr;
14 @@ -92,7 +92,7 @@ bool ConditionVariable::WaitFor(Mutex* mutex, const TimeDelta& rel_time) {
15        &native_handle_, &mutex->native_handle(), &ts);
16  #else
17  #if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
18 -     (V8_OS_LINUX && V8_LIBC_GLIBC))
19 +     V8_OS_LINUX)
20    // On Free/Net/OpenBSD and Linux with glibc we can change the time
21    // source for pthread_cond_timedwait() to use the monotonic clock.
22    result = clock_gettime(CLOCK_MONOTONIC, &ts);