generalize IO sleep_strategy code
Introduce AbstractIoSleepStrategy holding most of the code needed for a sleep strategy using an IO object fur suspension/notification. This changes are used in future patches to implement more IO-based sleep strategies.
Showing
- emper/Runtime.hpp 3 additions, 1 deletionemper/Runtime.hpp
- emper/Worker.hpp 2 additions, 3 deletionsemper/Worker.hpp
- emper/io/IoContext.hpp 5 additions, 5 deletionsemper/io/IoContext.hpp
- emper/sleep_strategy/AbstractIoSleepStrategy.cpp 124 additions, 0 deletionsemper/sleep_strategy/AbstractIoSleepStrategy.cpp
- emper/sleep_strategy/AbstractIoSleepStrategy.hpp 323 additions, 0 deletionsemper/sleep_strategy/AbstractIoSleepStrategy.hpp
- emper/sleep_strategy/PipeSleepStrategy.cpp 20 additions, 141 deletionsemper/sleep_strategy/PipeSleepStrategy.cpp
- emper/sleep_strategy/PipeSleepStrategy.hpp 18 additions, 251 deletionsemper/sleep_strategy/PipeSleepStrategy.hpp
- emper/sleep_strategy/meson.build 1 addition, 0 deletionsemper/sleep_strategy/meson.build
- tests/ScheduleOnTest.cpp 2 additions, 1 deletiontests/ScheduleOnTest.cpp
Loading
Please register or sign in to comment