From c025d05c1e3b694c088ced3ebe2e3c1148ab5d20 Mon Sep 17 00:00:00 2001 From: Mark Oostveen Date: Mon, 4 Sep 2023 12:55:34 +0200 Subject: [PATCH] Made Optimize function public for external calls in case of low long job counts --- JobSystem/Src/JobSystem/JobSystem.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/JobSystem/Src/JobSystem/JobSystem.h b/JobSystem/Src/JobSystem/JobSystem.h index 363497b..f36719b 100644 --- a/JobSystem/Src/JobSystem/JobSystem.h +++ b/JobSystem/Src/JobSystem/JobSystem.h @@ -171,6 +171,9 @@ namespace JbSystem { void WaitForJobsAndShutdown(); + void OptimizePerformance(); + void MaybeOptimize(); + /// /// is the job system active or not /// @@ -196,7 +199,6 @@ namespace JbSystem { void Cleanup(); - void OptimizePerformance(); bool RescheduleWorkerJobs(JobSystemWorker& worker); void RescheduleWorkerJobsFromInActiveWorkers(); @@ -233,7 +235,6 @@ namespace JbSystem { /// std::vector StealAllJobsFromWorkers(); - void MaybeOptimize(); void MaybeHelpLowerQueue(const JobPriority& priority); std::atomic _activeWorkerCount = 0;