mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-02 20:52:21 +00:00
The complex logic to make a single pass through the ready queue to find the old location and also the new insertion point was unfortunately error-prone. Recast it as two separate passes: a simple search loop to find and unlink the fiber_context*, then a call to awakened() to reinsert it in the correct place.