diff --git a/include/boost/fiber/fiber_context.hpp b/include/boost/fiber/fiber_context.hpp index 16917d11..2137137f 100644 --- a/include/boost/fiber/fiber_context.hpp +++ b/include/boost/fiber/fiber_context.hpp @@ -331,7 +331,7 @@ public: void resume() { BOOST_ASSERT( is_running() ); // set by the scheduler-algorithm - ctx_.resume(); + ctx_(); } std::chrono::high_resolution_clock::time_point const& time_point() const noexcept { diff --git a/src/round_robin.cpp b/src/round_robin.cpp index a49a2d23..6cee13d3 100644 --- a/src/round_robin.cpp +++ b/src/round_robin.cpp @@ -36,7 +36,7 @@ round_robin::pick_next() { std::size_t round_robin::ready_fibers() const noexcept { - return rqueue_.empty(); + return rqueue_.size(); } }}