get rid of JobSystem::reset()
It was only used to clear the master job, instead the master job is cleared when waited on.
This commit is contained in:
committed by
Mathias Agopian
parent
b5eb00bdb1
commit
d6de2bf426
@@ -422,6 +422,10 @@ void JobSystem::waitAndRelease(Job*& job) noexcept {
|
||||
}
|
||||
} while (!hasJobCompleted(job) && !exitRequested());
|
||||
|
||||
if (job == mMasterJob) {
|
||||
mMasterJob = nullptr;
|
||||
}
|
||||
|
||||
release(job);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user