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

pass active cotnext directly to yield()

This commit is contained in:
Oliver Kowalke
2016-02-02 17:06:21 +01:00
parent 8b3d3a195f
commit bacbb59afa

View File

@@ -273,10 +273,8 @@ context::join() {
void
context::yield() noexcept {
// get active context
context * active_ctx = context::active();
// yield active context
scheduler_->yield( active_ctx);
scheduler_->yield( context::active() );
}
void