X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/45035509d88263d7e63fb36cc52c280fccf3d8a8..73f0f2aaa33c085cdd429732f0897aa901e94176:/src/kernel/activity/ExecImpl.hpp diff --git a/src/kernel/activity/ExecImpl.hpp b/src/kernel/activity/ExecImpl.hpp index 9ad4b5ed60..117831ad92 100644 --- a/src/kernel/activity/ExecImpl.hpp +++ b/src/kernel/activity/ExecImpl.hpp @@ -7,6 +7,7 @@ #define SIMIX_SYNCHRO_EXEC_HPP #include "src/kernel/activity/ActivityImpl.hpp" +#include "src/kernel/context/Context.hpp" #include "surf/surf.hpp" namespace simgrid { @@ -17,30 +18,28 @@ class XBT_PUBLIC ExecImpl : public ActivityImpl { ~ExecImpl() override; public: - explicit ExecImpl(std::string name, resource::Action* surf_action, resource::Action* timeout_detector, + explicit ExecImpl(std::string name, std::string tracing_category, resource::Action* timeout_detector, s4u::Host* host); - void suspend() override; - void resume() override; + ExecImpl* start(double flops_amount, double priority, double bound); void cancel(); void post() override; + void finish() override; double get_remaining(); double get_remaining_ratio(); void set_bound(double bound); void set_priority(double priority); - void set_category(std::string category); virtual ActivityImpl* migrate(s4u::Host* to); /* The host where the execution takes place. nullptr means this is a parallel exec (and only surf knows the hosts) */ s4u::Host* host_ = nullptr; + private: resource::Action* timeout_detector_ = nullptr; public: - static simgrid::xbt::signal on_creation; - static simgrid::xbt::signal on_completion; - static simgrid::xbt::signal on_suspended; - static simgrid::xbt::signal on_resumed; - static simgrid::xbt::signal on_migration; + static simgrid::xbt::signal on_creation; + static simgrid::xbt::signal on_completion; + static simgrid::xbt::signal on_migration; }; } }