mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Add Threading::JobSystem::GetCountWorkers()
This commit is contained in:
@@ -446,6 +446,11 @@ Job *AddJob(std::function<void()> &&callback, const rdcarray<Job *> &parents)
|
||||
return ret;
|
||||
}
|
||||
|
||||
uint32_t GetCountWorkers()
|
||||
{
|
||||
return (uint32_t)workers.size();
|
||||
}
|
||||
|
||||
}; // namespace JobSystem
|
||||
|
||||
}; // namespace Threading
|
||||
|
||||
@@ -118,6 +118,7 @@ void Init(uint32_t numThreads = 0);
|
||||
void Shutdown();
|
||||
Job *AddJob(std::function<void()> &&cb, const rdcarray<Job *> &parents = {});
|
||||
void SyncAllJobs();
|
||||
uint32_t GetCountWorkers();
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user