X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c9326643bdf057c8e96df1011be4a61f28aeb9d2..7e42dd535dfc0d68de20fba4b9fc5e480b56c74b:/src/s4u/s4u_Actor.cpp diff --git a/src/s4u/s4u_Actor.cpp b/src/s4u/s4u_Actor.cpp index 816540bc58..f693e258b1 100644 --- a/src/s4u/s4u_Actor.cpp +++ b/src/s4u/s4u_Actor.cpp @@ -31,7 +31,7 @@ simgrid::xbt::signal s4u::Actor::on_destruction; // ***** Actor creation ***** ActorPtr Actor::self() { - smx_context_t self_context = SIMIX_context_self(); + smx_context_t self_context = simgrid::kernel::context::Context::self(); if (self_context == nullptr) return simgrid::s4u::ActorPtr(); @@ -47,7 +47,7 @@ ActorPtr Actor::create(std::string name, s4u::Host* host, std::function ActorPtr Actor::create(std::string name, s4u::Host* host, std::string function, std::vector args) { simgrid::simix::ActorCodeFactory& factory = SIMIX_get_actor_code_factory(function); - return create(name, host, std::move(factory(std::move(args)))); + return create(name, host, factory(std::move(args))); } void intrusive_ptr_add_ref(Actor* actor)