X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e3a1cf8d29cef5eaf730b485da389cff9319fa56..b7b9fb781045188e65beb5c1dfc391a2d21e5472:/src/kernel/context/ContextUnix.cpp diff --git a/src/kernel/context/ContextUnix.cpp b/src/kernel/context/ContextUnix.cpp index be6fbc9075..88b2bdb525 100644 --- a/src/kernel/context/ContextUnix.cpp +++ b/src/kernel/context/ContextUnix.cpp @@ -56,7 +56,7 @@ namespace kernel { namespace context { // UContextFactory -Context* UContextFactory::create_context(std::function code, smx_actor_t actor) +Context* UContextFactory::create_context(std::function&& code, smx_actor_t actor) { return new_context(std::move(code), actor, this); } @@ -64,7 +64,7 @@ Context* UContextFactory::create_context(std::function code, smx_actor_t // UContext -UContext::UContext(std::function code, smx_actor_t actor, SwappedContextFactory* factory) +UContext::UContext(std::function&& code, smx_actor_t actor, SwappedContextFactory* factory) : SwappedContext(std::move(code), actor, factory) { /* if the user provided a function for the actor then use it. If not, nothing to do for maestro. */