From d61b3952078abb95cf45b7ee224a44fde5169fae Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Mon, 20 Jul 2015 19:42:11 +0200 Subject: [PATCH 1/2] Update round_robin.cpp --- src/round_robin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }} From cb19fe4c413546fd276014360da77b4fae71cd57 Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Mon, 20 Jul 2015 19:47:43 +0200 Subject: [PATCH 2/2] Update fiber_context.hpp --- include/boost/fiber/fiber_context.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {