diff --git a/src/apex/task_wrapper.hpp b/src/apex/task_wrapper.hpp index 7b2ae94b..cacee60c 100644 --- a/src/apex/task_wrapper.hpp +++ b/src/apex/task_wrapper.hpp @@ -49,6 +49,26 @@ struct task_wrapper { tt_ptr->task_id = task_identifier::get_task_id(apex_main_str); return tt_ptr; } + static inline std::shared_ptr & get_apex_hpx_shutdown_wrapper(void) { + static std::shared_ptr tt_ptr(nullptr); + if (tt_ptr.get() != nullptr) { + return tt_ptr; + } + const std::string apex_shutdown_str("shutdown_all_action"); + tt_ptr = std::make_shared(); + tt_ptr->task_id = task_identifier::get_task_id(apex_shutdown_str); + return tt_ptr; + } + static inline std::shared_ptr & get_apex_hpx_timer_wrapper(void) { + static std::shared_ptr tt_ptr(nullptr); + if (tt_ptr.get() != nullptr) { + return tt_ptr; + } + const std::string apex_timer_str("at_timer (expire at)"); + tt_ptr = std::make_shared(); + tt_ptr->task_id = task_identifier::get_task_id(apex_timer_str); + return tt_ptr; + } }; // struct task_wrapper }; // namespace apex