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

remove unecessary argument in scheduler::suspend()

This commit is contained in:
oliver Kowalke
2016-04-25 10:29:44 +02:00
parent 16f4324422
commit 5218f46350
3 changed files with 7 additions and 13 deletions

View File

@@ -288,12 +288,12 @@ context::resume( context * ready_ctx) noexcept {
void
context::suspend() noexcept {
scheduler_->suspend( this);
scheduler_->suspend();
}
void
context::suspend( detail::spinlock_lock & lk) noexcept {
scheduler_->suspend( this, lk);
scheduler_->suspend( lk);
}
void
@@ -310,7 +310,7 @@ context::join() {
active_ctx->wait_link( wait_queue_);
lk.unlock();
// suspend active context
scheduler_->suspend( active_ctx);
scheduler_->suspend();
// remove from wait-queue
active_ctx->wait_unlink();
// active context resumed