Reactor.run_n() returns #events delivered
This commit is contained in:
parent
daa09aff86
commit
9adfbb822d
3 changed files with 9 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue