2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-11 11:42:23 +00:00
Files
fiber/examples
Nat Goodspeed 15a17ca35d Introduce sched_algorithm_with_properties<>::awakened() overload.
sched_algorithm_with_properties<> must intercept awakened() calls before
forwarding control to the subclass override. That pretty much requires two
different virtual methods: one for sched_algorithm subclasses WITHOUT
properties, the other for sched_algorithm_with_properties subclasses.
Originally we used a different name (awakened_props()), but that was
bothersome. It makes more sense to use a different awakened() overload
instead, one that passes in the relevant properties object.

Fix examples/priority.cpp accordingly.

Also delegate instantiation of a new properties object to new_properties()
virtual method. Overriding this method allows you to customize allocation,
instead of sched_algorithm_with_properties<> unconditionally putting the new
properties object on the heap. Validate the new_properties() return value.
2015-06-21 22:39:00 -04:00
..
2015-02-12 16:29:01 +01:00
2015-01-01 14:40:39 +01:00
2015-01-01 14:40:39 +01:00
2015-01-01 14:40:39 +01:00
2015-01-01 14:40:39 +01:00
2015-01-01 14:40:39 +01:00
2015-02-19 13:31:56 +01:00
2015-02-06 18:29:26 +01:00