summaryrefslogtreecommitdiff
path: root/ipc/chromium
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-10-16 23:24:19 +0000
committerMoonchild <moonchild@palemoon.org>2022-10-16 23:24:19 +0000
commitebd7672d6ba8617c99f80f026b1415a6aafe00a5 (patch)
treefcee0b582063976be78fe5ea893b2fe76a397b3e /ipc/chromium
parent1f78e93f1db655efd4427d4a6dd7f3ea56624823 (diff)
downloaduxp-ebd7672d6ba8617c99f80f026b1415a6aafe00a5.tar.gz
[No issue] Ensure LockImpl::Try() returns the correct bool value.
Diffstat (limited to 'ipc/chromium')
-rw-r--r--ipc/chromium/src/base/lock_impl_posix.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipc/chromium/src/base/lock_impl_posix.cc b/ipc/chromium/src/base/lock_impl_posix.cc
index b0fbfe5f04..05e5269e09 100644
--- a/ipc/chromium/src/base/lock_impl_posix.cc
+++ b/ipc/chromium/src/base/lock_impl_posix.cc
@@ -45,6 +45,7 @@ LockImpl::~LockImpl() {
bool LockImpl::Try() {
int rv = pthread_mutex_trylock(&native_handle_);
DCHECK(rv == 0 || rv == EBUSY) << ". " << strerror(rv);
+ return rv == 0;
}
void LockImpl::Lock() {