2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-14 00:32:17 +00:00

some fixes

This commit is contained in:
Oliver Kowalke
2014-06-22 19:31:58 +02:00
parent dabcd39066
commit 91ccc91ee7
15 changed files with 186 additions and 167 deletions

View File

@@ -11,7 +11,6 @@
#include <boost/scope_exit.hpp>
#include <boost/system/error_code.hpp>
#include "boost/fiber/detail/scheduler.hpp"
#include "boost/fiber/exceptions.hpp"
#include "boost/fiber/operations.hpp"
@@ -26,7 +25,7 @@ void
fiber::start_fiber_()
{
impl_->set_ready();
fm_spawn( detail::scheduler::instance(), impl_);
fm_spawn( impl_);
}
int
@@ -42,7 +41,7 @@ fiber::priority( int prio) BOOST_NOEXCEPT
{
BOOST_ASSERT( impl_);
fm_priority( detail::scheduler::instance(), impl_, prio);
fm_priority( impl_, prio);
}
bool
@@ -78,7 +77,7 @@ fiber::join()
system::errc::invalid_argument, "boost fiber: fiber not joinable") );
}
fm_join( detail::scheduler::instance(), impl_);
fm_join( impl_);
detail::worker_fiber * tmp = 0;
std::swap( tmp, impl_);