Skip to content
Snippets Groups Projects
Commit 2cba082b authored by Florian Fischer's avatar Florian Fischer
Browse files

Make decision how many workers to notify in Runtime

The decision how many workers should be notified on new work should be
made in the runtime.
This is the whole reason why WorkerWakeupStrategies provide notify{One,Many,All} functions.

This change also simplifies the logic used in SemaphoreWorkerSleepStrategy.
The old simply copy-pasted semaphore based implementation could then
be split up into much smaller and simpler pieces.
SemaphoreWorkerSleepStrategy::notify{All, Many} is could actually be faster
because it can now use the semaphores notify_many function instead of
calling notifyInternal multiple times.
parent 3ab70f90
No related branches found
No related tags found
1 merge request!183Make decision how many workers to notify in Runtime
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment