diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2023-01-27 11:04:41 +0100 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2023-01-27 11:15:30 +0100 |
commit | f630940591f66cc98fb52f2873e8c9f1eb1ee056 (patch) | |
tree | 5876b0217b3c782698ea3650cdd32c6706d9fa1a /core/math | |
parent | 9f74f0f6c5e5c98b18f4f0ad95092a88d064f616 (diff) |
Booleanize various sync primitives' wait & locking methods
Diffstat (limited to 'core/math')
-rw-r--r-- | core/math/bvh.h | 2 |
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(); } |