From 950a1571bbe9fd7c83fd07a3dd1d38c874b061ae Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Sun, 11 Oct 2015 08:43:40 +0200 Subject: [PATCH] do not move yielded contexts in resume_() --- src/scheduler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/scheduler.cpp b/src/scheduler.cpp index 684a191e..a0cf7453 100644 --- a/src/scheduler.cpp +++ b/src/scheduler.cpp @@ -47,9 +47,7 @@ scheduler::resume_( context * active_ctx, context * ctx) { BOOST_ASSERT( context::active() == active_ctx); BOOST_ASSERT( main_ctx_ == active_ctx || dispatcher_ctx_.get() == active_ctx || - active_ctx->worker_is_linked() ); - // move yielded context' to ready-queue - yield2ready_(); + active_ctx->worker_is_linked() ); // check if unwinding was requested if ( active_ctx->unwinding_requested() ) { throw forced_unwind();