diff --git a/include/boost/fiber/round_robin.hpp b/include/boost/fiber/round_robin.hpp index d9f923ec..7d1aa303 100644 --- a/include/boost/fiber/round_robin.hpp +++ b/include/boost/fiber/round_robin.hpp @@ -78,8 +78,6 @@ private: detail::main_fiber mn_; detail::main_fiber::ptr_t main_fiber_; - void resume_fiber_( detail::worker_fiber::ptr_t const&); - public: round_robin() BOOST_NOEXCEPT; diff --git a/src/round_robin.cpp b/src/round_robin.cpp index 08a1dcb1..038f171d 100644 --- a/src/round_robin.cpp +++ b/src/round_robin.cpp @@ -48,7 +48,7 @@ round_robin::~round_robin() BOOST_NOEXCEPT } void -round_robin::resume_fiber_( detail::worker_fiber::ptr_t const& f) +round_robin::spawn( detail::worker_fiber::ptr_t const& f) { BOOST_ASSERT( f); BOOST_ASSERT( f->is_ready() ); @@ -68,16 +68,6 @@ round_robin::resume_fiber_( detail::worker_fiber::ptr_t const& f) active_fiber_ = tmp; } -void -round_robin::spawn( detail::worker_fiber::ptr_t const& f) -{ - BOOST_ASSERT( f); - BOOST_ASSERT( f->is_ready() ); - - // push active fiber to ready-queue - rqueue_.push_back( f); -} - bool round_robin::run() { @@ -120,7 +110,7 @@ round_robin::run() while ( true); // resume fiber - resume_fiber_( f); + spawn( f); return true; }