Commit 07bd5737 authored by Maxime Perrotin's avatar Maxime Perrotin

Fix issue with distributed systems and mixed interfaces

parent 28e5276a
......@@ -139,7 +139,13 @@ void ada_wrappers_preamble(FV * fv)
}
if (passive_runtime == fv->runtime_nature || mix) {
FOREACH(ct, FV, fv->calling_threads, {
// Only include calling threads that are on the same node
// (in principle it should even be more restrictive, it should
// be calling threads that can actually make the calls to the
// unprotected PIs)
if (fv->process == ct->process) {
Add_With_AsyncRI(ct, &ads);
}
});
}
......
......@@ -107,7 +107,8 @@ void c_wrappers_preamble(FV * fv)
result = true;
}
});
if (result) {
if (result && fv->process == ct->process) {
// include only if the functions are in the same node
fprintf(h,
"#include \"../../%s/%s_polyorb_interface.h\"\n",
ct->name, ct->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