X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b9684d3607aa558c95b7185ddf147b478a7e367f..3e978b7ee3fb648f19de9aeb4450a98e30dd437b:/src/simix/smx_deployment.cpp diff --git a/src/simix/smx_deployment.cpp b/src/simix/smx_deployment.cpp index b5e84b1669..a740981cf3 100644 --- a/src/simix/smx_deployment.cpp +++ b/src/simix/smx_deployment.cpp @@ -151,3 +151,14 @@ void SIMIX_process_set_function(const char *process_host, process.on_failure = SURF_PROCESS_ON_FAILURE_DIE; sg_platf_new_process(&process); } + +namespace simgrid { +namespace simix { + +void registerFunction(const char* name, ActorCodeFactory factory) +{ + simix_global->registered_functions[name] = std::move(factory); +} + +} +} \ No newline at end of file