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

rename scheduler::re_schedule() -> scheduler::suspend()

This commit is contained in:
Oliver Kowalke
2015-10-18 20:03:38 +02:00
parent af6ead53ae
commit 4710e12fe1
3 changed files with 4 additions and 4 deletions

View File

@@ -227,7 +227,7 @@ context::resume( std::function< void() > * func) {
void
context::suspend( std::function< void() > * func) noexcept {
scheduler_->re_schedule( this, func);
scheduler_->suspend( this, func);
}
void
@@ -246,7 +246,7 @@ context::join() {
active_ctx->wait_link( wait_queue_);
lk.unlock();
// suspend active context
scheduler_->re_schedule( active_ctx);
scheduler_->suspend( active_ctx);
// remove from wait-queue
active_ctx->wait_unlink();
// active context resumed