At the moment, if multiple threads wait for data at the same time, the cumulative time is subtracted from the IoTimeBudget. It would be better to not double-count overlaps. This probably requires a tighter coupling of IoTimeBudget and IoStatistics. Then also IoTimeBudget.timeLeft() could give a more accurate estimate by accounting for "in-progress" waits.
At the moment, if multiple threads wait for data at the same time, the cumulative time is subtracted from the
IoTimeBudget
. It would be better to not double-count overlaps. This probably requires a tighter coupling ofIoTimeBudget
andIoStatistics
. Then alsoIoTimeBudget.timeLeft()
could give a more accurate estimate by accounting for "in-progress" waits.