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

@@ -93,12 +93,9 @@ public:
// If a parent is not specified when creating a job, that job will automatically take the
// master job as a parent.
// The master job is reset when calling reset()
// The master job is reset when waited on.
Job* setMasterJob(Job* job) noexcept { return mMasterJob = job; }
// Clears the master job
void reset() noexcept { mMasterJob = nullptr; }
// NOTE: All methods below must be called from the same thread and that thread must be
// owned by JobSystem's thread pool.