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
Move some C++ helpers in xbt/
[simgrid.git]
/
src
/
surf
/
sg_platf.cpp
diff --git
a/src/surf/sg_platf.cpp
b/src/surf/sg_platf.cpp
index
144002f
..
43f06ef
100644
(file)
--- a/
src/surf/sg_platf.cpp
+++ b/
src/surf/sg_platf.cpp
@@
-9,6
+9,7
@@
#include "xbt/str.h"
#include "xbt/dict.h"
#include "xbt/RngStream.h"
#include "xbt/str.h"
#include "xbt/dict.h"
#include "xbt/RngStream.h"
+#include <xbt/functional.hpp>
#include <xbt/signal.hpp>
#include "src/surf/HostImpl.hpp"
#include "surf/surf.h"
#include <xbt/signal.hpp>
#include "src/surf/HostImpl.hpp"
#include "surf/surf.h"
@@
-572,7
+573,7
@@
void sg_platf_new_process(sg_platf_process_cbarg_t process)
double kill_time = process->kill_time;
int auto_restart = process->on_failure == SURF_PROCESS_ON_FAILURE_DIE ? 0 : 1;
double kill_time = process->kill_time;
int auto_restart = process->on_failure == SURF_PROCESS_ON_FAILURE_DIE ? 0 : 1;
- std::function<void()> code = simgrid::
simix::wrap_m
ain(parse_code, process->argc, process->argv);
+ std::function<void()> code = simgrid::
xbt::wrapM
ain(parse_code, process->argc, process->argv);
smx_process_arg_t arg = NULL;
smx_process_t process_created = NULL;
smx_process_arg_t arg = NULL;
smx_process_t process_created = NULL;