Cleanup: Use Blender::Mutex in OpenColorIO integration

This commit is contained in:
Sergey Sharybin
2025-05-09 14:05:04 +02:00
parent 7ceb4495c5
commit 8a6951a986

View File

@@ -8,6 +8,8 @@
#include <memory>
#include <mutex>
#include "BLI_mutex.hh"
#include "OCIO_cpu_processor.hh"
namespace blender::ocio {
@@ -20,7 +22,7 @@ class CPUProcessorCache {
*
* If the mutex is per-object then this doesn't work as the mutex deletes the move constructor.
*/
static inline std::mutex mutex_;
static inline Mutex mutex_;
mutable bool processor_created_ = false;
mutable std::unique_ptr<const CPUProcessor> cpu_processor_;