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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user