#include "src/include/mc/mc.h"
#include "src/kernel/activity/ExecImpl.hpp"
#include "src/mc/mc_replay.hpp"
-#include "src/simix/smx_private.hpp"
#include "src/surf/HostImpl.hpp"
#include <algorithm>
void Actor::kill()
{
kernel::actor::ActorImpl* self = SIMIX_process_self();
- kernel::actor::simcall([this, self] {
- xbt_assert(pimpl_ != simix_global->maestro_process, "Killing maestro is a rather bad idea");
- self->kill(pimpl_);
- });
+ kernel::actor::simcall([this, self] { self->kill(pimpl_); });
}
// ***** Static functions *****
*/
bool is_maestro()
{
- kernel::actor::ActorImpl* self = SIMIX_process_self();
- return self == nullptr || self == simix_global->maestro_process;
+ return SIMIX_is_maestro();
}
void sleep_for(double duration)