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
sonar cleanups: pass large objects by const reference
[simgrid.git]
/
src
/
s4u
/
s4u_Actor.cpp
diff --git
a/src/s4u/s4u_Actor.cpp
b/src/s4u/s4u_Actor.cpp
index
c39f366
..
0ca43d2
100644
(file)
--- a/
src/s4u/s4u_Actor.cpp
+++ b/
src/s4u/s4u_Actor.cpp
@@
-754,6
+754,10
@@
void sg_actor_execute(double flops)
{
simgrid::s4u::this_actor::execute(flops);
}
+void sg_actor_execute_with_priority(double flops, double priority)
+{
+ simgrid::s4u::this_actor::exec_init(flops)->set_priority(priority)->wait();
+}
void sg_actor_parallel_execute(int host_nb, sg_host_t* host_list, double* flops_amount, double* bytes_amount)
{