JobSystem: remove the DONT_SIGNAL flag

A side effect of this flag was that we had to always use notify_all
when starting a job, instead of notify_one -- in practice, we found
experimentally that more calls to notify_one is cheaper than fewer
calls to notify_all.
This commit is contained in:
Mathias Agopian
2021-06-04 13:57:57 -07:00
committed by Mathias Agopian
parent c5ef1d6252
commit bbc4f4f21d
7 changed files with 35 additions and 34 deletions

View File

@@ -208,7 +208,7 @@ TEST(JobSystem, JobSystemParallelChildren) {
JobSystem::Job* root = js.createJob<User, &User::func>(nullptr, &j);
for (int i=0 ; i<256 ; i++) {
JobSystem::Job* job = js.createJob<User, &User::func>(root, &j);
js.run(job, JobSystem::DONT_SIGNAL);
js.run(job);
}
js.runAndWait(root);