2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-09 11:02:53 +00:00
Files
fiber/examples/priority.cpp
Nat Goodspeed 2b6135364e Make awakened() unconditionally insert fiber.
There was a bug when the ready queue wasn't empty, but there was no
lower-priority fiber already in the queue. In that case the fiber wouldn't be
inserted. We want the loop just to advance the iterator, but to perform the
insert regardless of where the iterator ends up. (With this logic, empty() is
no longer a special case.)

Restore the ~Verbose() message.
2015-09-09 21:46:35 -04:00

12 KiB