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
poor damage control for tonight only
[simgrid.git]
/
src
/
simix
/
ActorImpl.cpp
diff --git
a/src/simix/ActorImpl.cpp
b/src/simix/ActorImpl.cpp
index
4e02287
..
2e604a9
100644
(file)
--- a/
src/simix/ActorImpl.cpp
+++ b/
src/simix/ActorImpl.cpp
@@
-488,7
+488,11
@@
ActorImplPtr ActorImpl::create(std::string name, simix::ActorCode code, void* da
{
XBT_DEBUG("Start actor %s@'%s'", name.c_str(), host->get_cname());
- ActorImplPtr actor = SIMIX_process_self()->init(simgrid::xbt::string(name), host);
+ ActorImplPtr actor;
+ if (parent_actor != nullptr)
+ actor = parent_actor->init(simgrid::xbt::string(name), host);
+ else
+ actor = SIMIX_process_self()->init(simgrid::xbt::string(name), host);
/* actor data */
actor->set_user_data(data);