- /*! Add a callback fired each time that the activity fails to start because of a veto (e.g., unsolved dependency or no
- * resource assigned) */
- static void on_veto_cb(const std::function<void(Activity&)>& cb) { on_veto.connect(cb); }
- /*! Add a callback fired when the activity is suspended */
- static void on_suspend_cb(const std::function<void(Activity const&)>& cb)
- {
- on_suspend.connect(cb);
- }
- /*! Add a callback fired when the activity is resumed after being suspended */
- static void on_resume_cb(const std::function<void(Activity const&)>& cb)
- {
- on_resume.connect(cb);
- }
-
- XBT_ATTRIB_DEPRECATED_v337("Please use on_suspend_cb() instead") static void on_suspended_cb(
- const std::function<void(Activity const&)>& cb)
- {
- on_suspend.connect(cb);
- }
- XBT_ATTRIB_DEPRECATED_v337("Please use on_resume_cb() instead") static void on_resumed_cb(
- const std::function<void(Activity const&)>& cb)
- {
- on_resume.connect(cb);
- }
-