summaryrefslogtreecommitdiff
path: root/core/math
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-27 15:40:43 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-27 15:40:43 +0100
commitf0e3c3f4c398f25ad5d9f9133c0ff6162e6716ad (patch)
tree3e8d948be734a26d884cea35bc3caa8f78eaf71f /core/math
parent518b9e5801a19229805fe837d7d0cf92920ad413 (diff)
parentf630940591f66cc98fb52f2873e8c9f1eb1ee056 (diff)
Merge pull request #72168 from RandomShaper/sensible_lock_return
Booleanize various sync primitives' wait & locking methods
Diffstat (limited to 'core/math')
-rw-r--r--core/math/bvh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/bvh.h b/core/math/bvh.h
index 357d483375..ea8289607e 100644
--- a/core/math/bvh.h
+++ b/core/math/bvh.h
@@ -780,7 +780,7 @@ private:
if (p_thread_safe) {
_mutex = p_mutex;
- if (_mutex->try_lock() != OK) {
+ if (!_mutex->try_lock()) {
WARN_PRINT("Info : multithread BVH access detected (benign)");
_mutex->lock();
}