mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-14 12:42:28 +00:00
boost.asio related stuff (fiber-aware io_servic etc.)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#define BOOST_wqueue_SOURCE
|
||||
#define BOOST_FIBERS_SOURCE
|
||||
|
||||
#include <boost/fiber/round_robin.hpp>
|
||||
|
||||
@@ -151,7 +151,7 @@ round_robin::yield()
|
||||
wqueue_.push_back( active_fiber_);
|
||||
// store active fiber in local var
|
||||
detail::fiber_base::ptr_t tmp = active_fiber_;
|
||||
// suspend fiber
|
||||
// suspend acitive fiber
|
||||
active_fiber_->suspend();
|
||||
// fiber is resumed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user