From 4e33e9c3d1d69c5b98c984a09e00f34e37f5ac03 Mon Sep 17 00:00:00 2001 From: Ben Doherty Date: Thu, 5 Aug 2021 11:53:35 -0700 Subject: [PATCH] Attempt to fix TSAN failure in ColorGrading.cpp (#4447) --- libs/utils/src/JobSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/utils/src/JobSystem.cpp b/libs/utils/src/JobSystem.cpp index 389355360b..29d3ed3aad 100644 --- a/libs/utils/src/JobSystem.cpp +++ b/libs/utils/src/JobSystem.cpp @@ -208,7 +208,7 @@ inline bool JobSystem::hasActiveJobs() const noexcept { } inline bool JobSystem::hasJobCompleted(JobSystem::Job const* job) noexcept { - return job->runningJobCount.load(std::memory_order_relaxed) <= 0; + return job->runningJobCount.load(std::memory_order_acquire) <= 0; } void JobSystem::wait(std::unique_lock& lock, Job* job) noexcept {