Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill two useless calls: SIMIX_process_get_host & simcall_process_get_host
[simgrid.git] / src / simix / smx_host.cpp
index a0be3c8..43365f2 100644 (file)
@@ -131,7 +131,7 @@ void SIMIX_host_destroy(void *h)
 sg_host_t SIMIX_host_self(void)
 {
   smx_process_t process = SIMIX_process_self();
-  return (process == nullptr) ? nullptr : SIMIX_process_get_host(process);
+  return (process == nullptr) ? nullptr : process->host;
 }
 
 /* needs to be public and without simcall for exceptions and logging events */