Add Threading::JobSystem::GetCountWorkers()

This commit is contained in:
Jake Turner
2025-08-21 15:12:43 +01:00
parent a4bf961af3
commit a2de7cb4ff
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -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
+1
View File
@@ -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();
};
};