- friend ExecSeq;
- friend ExecPar;
- friend XBT_PUBLIC void intrusive_ptr_release(Exec* e);
- friend XBT_PUBLIC void intrusive_ptr_add_ref(Exec* e);
- static xbt::signal<void(ActorPtr)> on_start;
- static xbt::signal<void(ActorPtr)> on_completion;
-
- virtual Exec* start() override = 0;
- virtual double get_remaining_ratio() = 0;
- virtual ExecPtr set_host(Host* host) = 0;
-
- Exec* wait() override;
- Exec* wait_for(double timeout) override;
- bool test() override;
-
- ExecPtr set_bound(double bound);
- ExecPtr set_name(const std::string& name);
- ExecPtr set_priority(double priority);
- ExecPtr set_tracing_category(const std::string& category);
- ExecPtr set_timeout(double timeout);
- Exec* cancel() override;
-
- XBT_ATTRIB_DEPRECATED_v323("Please use Exec::set_priority()") ExecPtr setPriority(double priority)
- {
- return set_priority(priority);
- }
- XBT_ATTRIB_DEPRECATED_v323("Please use Exec::set_bound()") ExecPtr setBound(double bound) { return set_bound(bound); }
- XBT_ATTRIB_DEPRECATED_v324("Please use Exec::wait_for()") void wait(double t) override { wait_for(t); }
-};
-
-class XBT_PUBLIC ExecSeq : public Exec {
- double flops_amount_ = 0.0;
-
- explicit ExecSeq(sg_host_t host, double flops_amount);
-
-public:
- friend XBT_PUBLIC ExecPtr this_actor::exec_init(double flops_amount);