mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-19 14:22:23 +00:00
reduce access to context::active()
This commit is contained in:
@@ -23,8 +23,9 @@ namespace fibers {
|
||||
|
||||
void
|
||||
fiber::start_() noexcept {
|
||||
context::active()->attach( impl_.get() );
|
||||
context::active()->get_scheduler()->set_ready( impl_.get() );
|
||||
context * ctx = context::active();
|
||||
ctx->attach( impl_.get() );
|
||||
ctx->get_scheduler()->set_ready( impl_.get() );
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user