mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-13 00:12:17 +00:00
interface algorithm, round_robin
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#include <boost/fiber/scheduler.hpp>
|
||||
#include <boost/fiber/detail/scheduler.hpp>
|
||||
|
||||
#ifdef BOOST_HAS_ABI_HEADERS
|
||||
# include BOOST_ABI_PREFIX
|
||||
@@ -50,7 +50,7 @@ condition::notify_one()
|
||||
waiting_.pop_front();
|
||||
} while ( f->is_complete() );
|
||||
if ( f)
|
||||
scheduler::instance().notify( f);
|
||||
detail::scheduler::instance().notify( f);
|
||||
}
|
||||
cmd_ = NOTIFY_ONE;
|
||||
}
|
||||
@@ -71,7 +71,7 @@ condition::notify_all()
|
||||
BOOST_FOREACH( detail::fiber_base::ptr_t const& f, waiting_)
|
||||
{
|
||||
if ( ! f->is_complete() )
|
||||
scheduler::instance().notify( f);
|
||||
detail::scheduler::instance().notify( f);
|
||||
}
|
||||
waiting_.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user