From bacbb59afaeaf81ab8df30935f0d09e41b9b7649 Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Tue, 2 Feb 2016 17:06:21 +0100 Subject: [PATCH] pass active cotnext directly to yield() --- src/context.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/context.cpp b/src/context.cpp index 53eb7ea5..63b1db1b 100644 --- a/src/context.cpp +++ b/src/context.cpp @@ -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