diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-27 15:40:43 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-27 15:40:43 +0100 |
commit | f0e3c3f4c398f25ad5d9f9133c0ff6162e6716ad (patch) | |
tree | 3e8d948be734a26d884cea35bc3caa8f78eaf71f /core/math | |
parent | 518b9e5801a19229805fe837d7d0cf92920ad413 (diff) | |
parent | f630940591f66cc98fb52f2873e8c9f1eb1ee056 (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.h | 2 |
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(); } |