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:
Mathias Agopian
2018-12-14 11:22:41 -08:00
committed by Mathias Agopian
parent b5eb00bdb1
commit d6de2bf426
7 changed files with 5 additions and 10 deletions

View File

@@ -422,6 +422,10 @@ void JobSystem::waitAndRelease(Job*& job) noexcept {
}
} while (!hasJobCompleted(job) && !exitRequested());
if (job == mMasterJob) {
mMasterJob = nullptr;
}
release(job);
}