Reactor.run_n() returns #events delivered

This commit is contained in:
Roland Conybeare 2023-10-12 01:31:20 -04:00
commit 9adfbb822d
3 changed files with 9 additions and 8 deletions

View file

@ -155,10 +155,7 @@ namespace xo {
/* pick random #of elements to remove (from front of queue) */
{
for (std::size_t j = 0; j < n_deq_attempted; ++j)
n_deq_done += reactor->run_one();
n_deq_done += reactor->run_n(n_deq_attempted);
n_work_attempted += n_deq_attempted;
n_work_done += n_deq_done;