X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b5c41c0ada7957d43102df650783de31c5e7fb2b..831d719023e7a0af690f54db87a5e6ba4802ede3:/src/mc/remote/RemoteClient.cpp diff --git a/src/mc/remote/RemoteClient.cpp b/src/mc/remote/RemoteClient.cpp index 6046e09772..f96e1e5ab9 100644 --- a/src/mc/remote/RemoteClient.cpp +++ b/src/mc/remote/RemoteClient.cpp @@ -673,5 +673,15 @@ void RemoteClient::dumpStack() unw_destroy_addr_space(as); return; } + +bool RemoteClient::actor_is_enabled(aid_t pid) +{ + s_mc_message_actor_enabled msg{MC_MESSAGE_ACTOR_ENABLED, pid}; + process()->getChannel().send(msg); + char buff[MC_MESSAGE_LENGTH]; + ssize_t received = process()->getChannel().receive(buff, MC_MESSAGE_LENGTH, true); + xbt_assert(received == sizeof(s_mc_message_int), "Unexpected size in answer to ACTOR_ENABLED"); + return ((mc_message_int_t*)buff)->value; +} } }