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

[PipeSleepStrategy] prevent the still present race to cqes with the completer

The previous race which I tried but in fact can not be fixed alone with
waitInflight flag is now described in the code comment in
PipeSleepStrategy::sleep().

To completely prevent the completer and the worker racing to the
new work notifications cqes we repurpose the cq_lock to ensure the
completer is always observing and honoring the waitInflight flag.

Also add an onNewWorkNotification callback to keep most sleep related
code and logic in PipeSleepStrategy.
parent ecc4c2ca
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
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