Attempt to fix TSAN failure in ColorGrading.cpp (#4447)

This commit is contained in:
Ben Doherty
2021-08-05 11:53:35 -07:00
committed by GitHub
parent 18ac9fd0cc
commit 4e33e9c3d1

View File

@@ -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<Mutex>& lock, Job* job) noexcept {