mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-12 12:02:54 +00:00
When the running thread's main fiber calls this_fiber::properties<>() without yet having passed through sched_algorithm_with_properties::awakened(), which is what actually instantiates the fiber_properties subclass, you could end up without a properties instance. Fortunately there's an easy workaround: call yield(). Remove that workaround from examples/priority.cpp.