mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-12 12:02:54 +00:00
Instead of setting a fiber_properties subclass's sched_algo_ back pointer once at construction time, unconditionally set it every time that fiber becomes READY (and is therefore passed to sched_algorithm::awakened()). This handles the case in which that fiber migrates to a different thread with a different sched_algorithm subclass instance. Break out fiber_properties::notify() implementation to a separate .cpp implementation file so it can bring in algorithm.hpp. We don't want properties.hpp to depend on algorithm.hpp.