Skip to content

Commit

Permalink
Made Optimize function public for external calls in case of low long …
Browse files Browse the repository at this point in the history
…job counts
  • Loading branch information
markoostveen committed Sep 4, 2023
1 parent f34c5e4 commit c025d05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions JobSystem/Src/JobSystem/JobSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ namespace JbSystem {

void WaitForJobsAndShutdown();

void OptimizePerformance();
void MaybeOptimize();

/// <summary>
/// is the job system active or not
/// </summary>
Expand All @@ -196,7 +199,6 @@ namespace JbSystem {

void Cleanup();

void OptimizePerformance();

bool RescheduleWorkerJobs(JobSystemWorker& worker);
void RescheduleWorkerJobsFromInActiveWorkers();
Expand Down Expand Up @@ -233,7 +235,6 @@ namespace JbSystem {
/// <returns></returns>
std::vector<Job*> StealAllJobsFromWorkers();

void MaybeOptimize();
void MaybeHelpLowerQueue(const JobPriority& priority);

std::atomic<int> _activeWorkerCount = 0;
Expand Down

0 comments on commit c025d05

Please sign in to comment.