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:
committed by
Mathias Agopian
parent
c5ef1d6252
commit
bbc4f4f21d
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user