Attempt to fix TSAN failure in ColorGrading.cpp (#4447)
This commit is contained in:
committed by
Benjamin Doherty
parent
1ea8e171d9
commit
8a2e31023f
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user