// ***** Actor creation *****
/** Retrieve a reference to myself */
- static ActorPtr self();
+ static Actor* self();
/** Signal to others that a new actor has been created **/
static xbt::signal<void(Actor&)> on_creation;
xbt::signal<void(Actor const&)> s4u::Actor::on_destruction;
// ***** Actor creation *****
-ActorPtr Actor::self()
+Actor* Actor::self()
{
kernel::context::Context* self_context = kernel::context::Context::self();
if (self_context == nullptr)
- return ActorPtr();
+ return nullptr;
- return self_context->get_actor()->iface();
+ return self_context->get_actor()->ciface();
}
ActorPtr Actor::init(const std::string& name, s4u::Host* host)
{
int main(int argc, char* argv[])
{
- if (simgrid::s4u::Actor::self().get() == nullptr) {
+ if (simgrid::s4u::Actor::self() == nullptr) {
printf("smpireplaymain should not be called directly. Please use smpirun -replay instead.\n");
return 1;
}