XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sg_host, sd, "Logging specific to sg_hosts");
-extern "C" {
-
size_t sg_host_count()
{
return simgrid::s4u::Engine::getInstance()->getHostCount();
smx_actor_t process = SIMIX_process_self();
return (process == nullptr) ? nullptr : process->host;
}
-
-} // extern "C"