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

do not use context::active() inside scheduler

This commit is contained in:
Oliver Kowalke
2015-09-07 22:30:26 +02:00
parent 2689e34be6
commit 6459b76075
4 changed files with 81 additions and 66 deletions

View File

@@ -161,7 +161,7 @@ context::do_schedule() {
BOOST_ASSERT( nullptr != scheduler_);
BOOST_ASSERT( this == active_);
scheduler_->run();
scheduler_->run( this);
}
void
@@ -169,7 +169,7 @@ context::do_wait( detail::spinlock_lock & lk) {
BOOST_ASSERT( nullptr != scheduler_);
BOOST_ASSERT( this == active_);
scheduler_->wait( lk);
scheduler_->wait( this, lk);
}
void
@@ -177,7 +177,7 @@ context::do_yield() {
BOOST_ASSERT( nullptr != scheduler_);
BOOST_ASSERT( this == active_);
scheduler_->yield();
scheduler_->yield( this);
}
void
@@ -186,7 +186,7 @@ context::do_join( context * f) {
BOOST_ASSERT( this == active_);
BOOST_ASSERT( nullptr != f);
scheduler_->join( f);
scheduler_->join( this, f);
}
std::size_t