/** Computation Activity, representing the asynchronous executions.
*
- * @rst
+ * @beginrst
* Most of them are created with :cpp:func:`simgrid::s4u::this_actor::exec_init()` or
* :cpp:func:`simgrid::s4u::Host::execute()`, and represent a classical (sequential) execution. This can be used to
* simulate some computation occurring in another thread when the calling actor is not blocked during the execution.
friend kernel::activity::ExecImpl;
double priority_ = 1.0;
double bound_ = 0.0;
- double timeout_ = 0.0;
+ double timeout_ = -1.0; // Infinite timeout by default
std::vector<double> flops_amounts_;
std::vector<double> bytes_amounts_;
std::vector<Host*> hosts_;
explicit Exec(kernel::activity::ExecImplPtr pimpl);
public:
- ~Exec() override = default;
#ifndef DOXYGEN
Exec(Exec const&) = delete;
Exec& operator=(Exec const&) = delete;
-
#endif
static xbt::signal<void(Exec const&)> on_start;
static xbt::signal<void(Exec const&)> on_completion;