A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add Host::by_name(char*)
[simgrid.git]
/
include
/
simgrid
/
s4u
/
Exec.hpp
diff --git
a/include/simgrid/s4u/Exec.hpp
b/include/simgrid/s4u/Exec.hpp
index
1782ad4
..
ada9cb9
100644
(file)
--- a/
include/simgrid/s4u/Exec.hpp
+++ b/
include/simgrid/s4u/Exec.hpp
@@
-19,23
+19,25
@@
XBT_PUBLIC_CLASS Exec : public Activity
{
Exec() : Activity() {}
public:
- friend
void intrusive_ptr_release(simgrid::s4u::Exec
* e);
- friend
void intrusive_ptr_add_ref(simgrid::s4u::Exec
* e);
- friend
Actor; // Factory of Exec
+ friend
XBT_PUBLIC(void) intrusive_ptr_release(simgrid::s4u::Exec
* e);
+ friend
XBT_PUBLIC(void) intrusive_ptr_add_ref(simgrid::s4u::Exec
* e);
+ friend
ExecPtr this_actor::exec_init(double flops_amount);
~Exec() = default;
void start() override;
void wait() override;
- void wait(double timeout);
+ void wait(double timeout)
override
;
bool test();
ExecPtr setPriority(double priority);
+ ExecPtr setHost(Host * host);
- double getRemains();
+ double getRemains() override;
+ double getRemainingRatio();
private:
-
smx_actor_t runner_
= nullptr;
+
Host* host_
= nullptr;
double flops_amount_ = 0.0;
double priority_ = 1.0;