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

[Runtime] use a POSIX semaphore to suspend/wakeup workers

To prevent deadlocks where all workers are going to sleep and new work
arrives from without emper we always increment the wakeup semaphore
unless we observe its value as > worker count.
If the semaphore value is bigger than worker count it is guarantied that
at least on worker will not block and will iterate a second time
in its dispatchLoop observing the new work.
parent cfba846c
No related branches found
No related tags found
No related merge requests found
Pipeline #58512 passed
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