int USER_HOST_LEVEL;
namespace simgrid {
+
+namespace xbt {
+template class Extendable<simgrid::s4u::Host>;
+}
+
namespace s4u {
simgrid::xbt::signal<void(Host&)> Host::onCreation;
}
Host::~Host() {
- if (mounts != NULL)
- delete mounts;
+ delete pimpl_cpu;
+ delete mounts;
}
Host *Host::by_name(std::string name) {
}
void Host::turn_off() {
- simgrid::simix::simcall<void>(SIMCALL_HOST_OFF, this);
+ simgrid::simix::kernel(std::bind(SIMIX_host_off, this, SIMIX_process_self()));
}
bool Host::is_on() {