Files
ternfs-XTXMarkets/cpp
Miroslav Crnic 9cba2856ba SPSC: another MultiWaiter fix
_queuesWithWork can go negative.
Consider the following scenario
there are 2 queues first one has work and
consumer is active.
1. producer adds work to queue 1 and sees it needs
  to update _queuesWithWork but is preempted
2. consumer consumes work from queue 0 and
   decrements _queuesWithWork to 0
3. consumer continues consuming and consumes all
   work from queue 1
4. consumer decrements _queuesWithWork to -1
5. only now producer updates _queuesWithWork to 0

It could be also solved by removeWork returning new value
and then consumer stopping consumption if it is 0.
2025-10-03 10:57:16 +00:00
..
2025-09-17 18:20:23 +01:00
2025-10-03 10:57:16 +00:00
2025-10-03 11:08:45 +01:00
2025-09-17 18:20:23 +01:00
2025-09-17 18:20:23 +01:00
2025-09-17 18:20:23 +01:00
2025-09-26 17:46:30 +01:00
2025-09-22 15:14:21 +01:00
2025-09-17 18:20:23 +01:00
2025-09-18 18:09:43 +01:00
2025-09-17 18:20:23 +01:00
2025-09-17 18:20:23 +01:00
2025-09-17 18:20:23 +01:00
2025-09-17 18:20:23 +01:00