summaryrefslogtreecommitdiff
path: root/core/math
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2023-01-27 11:04:41 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2023-01-27 11:15:30 +0100
commitf630940591f66cc98fb52f2873e8c9f1eb1ee056 (patch)
tree5876b0217b3c782698ea3650cdd32c6706d9fa1a /core/math
parent9f74f0f6c5e5c98b18f4f0ad95092a88d064f616 (diff)
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 9de704834b..9041d168ed 100644
--- a/core/math/bvh.h
+++ b/core/math/bvh.h
@@ -784,7 +784,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();
}