From 8b3d3a195f619ae39e50ca0c3ef920a967f96514 Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Tue, 2 Feb 2016 17:05:54 +0100 Subject: [PATCH] reduce access to context::active() --- src/fiber.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fiber.cpp b/src/fiber.cpp index 86f20571..8e9d813e 100644 --- a/src/fiber.cpp +++ b/src/fiber.cpp @@ -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