Commit 2fa81bb4 authored by Sebastian Woelke's avatar Sebastian Woelke

Change soft pinning only to neighbors of init exu

parent 320e63a5
......@@ -575,8 +575,13 @@ bool scheduled_actor::activate(execution_unit* ctx) {
return false;
} else {
CAF_LOG_DEBUG("initialized actor:" << CAF_ARG(name()) << CAF_ARG(ctx));
if (home_eu_ != ctx)
home_eu_ = ctx;
if (home_eu_ != ctx) {
if (home_eu_ == system().dummy_execution_unit()) {
home_eu_ = ctx;
} else if (home_eu_->is_neighbor(ctx)) {
home_eu_ = ctx;
}
}
}
CAF_LOG_DEBUG("initialized actor:" << CAF_ARG(name()));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment