1 /* virtualization layer for XBT */
3 /* Copyright (c) 2007-2021. The SimGrid Team. All rights reserved. */
5 /* This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #include "src/kernel/actor/ActorImpl.hpp"
13 const auto* self = simgrid::kernel::actor::ActorImpl::self();
14 return self == nullptr ? 0 : static_cast<int>(self->get_pid());
17 const char* xbt_procname(void)
19 return SIMIX_is_maestro() ? "maestro" : simgrid::kernel::actor::ActorImpl::self()->get_cname();