Loading libs/renderengine/threaded/RenderEngineThreaded.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -125,8 +125,10 @@ void RenderEngineThreaded::threadMain(CreateInstanceFactory factory) NO_THREAD_S } void RenderEngineThreaded::waitUntilInitialized() const { if (!mIsInitialized) { std::unique_lock<std::mutex> lock(mInitializedMutex); mInitializedCondition.wait(lock, [=] { return mIsInitialized; }); mInitializedCondition.wait(lock, [this] { return mIsInitialized.load(); }); } } std::future<void> RenderEngineThreaded::primeCache(bool shouldPrimeUltraHDR) { Loading libs/renderengine/threaded/RenderEngineThreaded.h +1 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ private: // Used to allow select thread safe methods to be accessed without requiring the // method to be invoked on the RenderEngine thread bool mIsInitialized = false; std::atomic_bool mIsInitialized = false; mutable std::mutex mInitializedMutex; mutable std::condition_variable mInitializedCondition; Loading Loading
libs/renderengine/threaded/RenderEngineThreaded.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -125,8 +125,10 @@ void RenderEngineThreaded::threadMain(CreateInstanceFactory factory) NO_THREAD_S } void RenderEngineThreaded::waitUntilInitialized() const { if (!mIsInitialized) { std::unique_lock<std::mutex> lock(mInitializedMutex); mInitializedCondition.wait(lock, [=] { return mIsInitialized; }); mInitializedCondition.wait(lock, [this] { return mIsInitialized.load(); }); } } std::future<void> RenderEngineThreaded::primeCache(bool shouldPrimeUltraHDR) { Loading
libs/renderengine/threaded/RenderEngineThreaded.h +1 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ private: // Used to allow select thread safe methods to be accessed without requiring the // method to be invoked on the RenderEngine thread bool mIsInitialized = false; std::atomic_bool mIsInitialized = false; mutable std::mutex mInitializedMutex; mutable std::condition_variable mInitializedCondition; Loading