Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Populate the kernel::context namespace and continue separating concerns out of simix
[simgrid.git] / src / simix / smx_host.cpp
index a0be3c8..5d534ba 100644 (file)
@@ -23,7 +23,7 @@ void SIMIX_host_create(sg_host_t host) // FIXME: braindead prototype. Take sg_ho
   smx_host_priv_t smx_host = xbt_new0(s_smx_host_priv_t, 1);
 
   /* Host structure */
-  simgrid::simix::Process proc;
+  simgrid::simix::ActorImpl proc;
   smx_host->process_list = xbt_swag_new(xbt_swag_offset(proc, host_proc_hookup));
 
   /* Update global variables */
@@ -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 */