2
0
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:
Oliver Kowalke
2016-02-02 17:05:54 +01:00
parent 1ace8bbb36
commit 8b3d3a195f

View File

@@ -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