SimGrid
3.18
Versatile Simulation of Distributed Systems
|
#include <Exec.hpp>
Public Member Functions | |
~Exec ()=default | |
Activity * | start () override |
Starts a previously created activity. More... | |
Activity * | wait () override |
Tests whether the given activity is terminated yet. More... | |
Activity * | wait (double timeout) override |
Blocks until the activity is terminated, or until the timeout is elapsed Raises: timeout exception. More... | |
bool | test () |
ExecPtr | setPriority (double priority) |
ExecPtr | setHost (Host *host) |
Host * | getHost () |
double | getRemains () override |
Get the remaining amount of work that this Activity entails. More... | |
double | getRemainingRatio () |
![]() | |
Activity (Activity const &)=delete | |
Activity & | operator= (Activity const &)=delete |
e_s4u_activity_state_t | getState () |
Cancel that activity. More... | |
Activity * | setRemains (double remains) |
Set the [remaining] amount of work that this Activity will entail. More... | |
Activity * | setUserData (void *data) |
Put some user data onto the Activity. More... | |
void * | getUserData () |
Retrieve the user data of the Activity. More... | |
Friends | |
void | intrusive_ptr_release (simgrid::s4u::Exec *e) |
void | intrusive_ptr_add_ref (simgrid::s4u::Exec *e) |
ExecPtr | this_actor::exec_init (double flops_amount) |
Additional Inherited Members | |
![]() | |
Activity ()=default | |
virtual | ~Activity ()=default |
|
default |
|
overridevirtual |
Starts a previously created activity.
This function is optional: you can call wait() even if you didn't call start()
Implements simgrid::s4u::Activity.
|
overridevirtual |
Tests whether the given activity is terminated yet.
This is a pure function. Blocks until the activity is terminated
Implements simgrid::s4u::Activity.
|
overridevirtual |
Blocks until the activity is terminated, or until the timeout is elapsed Raises: timeout exception.
Implements simgrid::s4u::Activity.
bool simgrid::s4u::Exec::test | ( | ) |
ExecPtr simgrid::s4u::Exec::setPriority | ( | double | priority | ) |
|
inline |
|
overridevirtual |
Get the remaining amount of work that this Activity entails.
When it's 0, it's done.
Reimplemented from simgrid::s4u::Activity.
double simgrid::s4u::Exec::getRemainingRatio | ( | ) |
|
friend |
|
friend |
|
friend |