2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-16 13:22:17 +00:00

do not move yielded contexts in resume_()

This commit is contained in:
Oliver Kowalke
2015-10-11 08:43:40 +02:00
parent 01dda0048f
commit 950a1571bb

View File

@@ -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();