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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user