mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-12 12:02:54 +00:00
Every sched_algorithm_with_properties<PROPS> subclass awakened() call must ensure that control reaches sched_algorithm_with_properties<PROPS>::awakened() _before_ any logic in the subclass method attempts to access properties. This turns out to be all too easy to forget. So instead, advise subclasses to overrride new awakened_props() method. Base- class method sets things up and then calls awakened_props(). Moreover, when the compiler supports it, sched_algorithm_with_properties<PROPS>::awakened() is now marked 'final' to remind subclass authors to override awakened_props() instead.