Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
react to the proper signals
[simgrid.git] / src / kernel / resource / DiskImpl.cpp
index bad94356a6adad75ed043eb9ed8bd56fb621fb1b..a231432488a69285d50209d9468474bc78f2ef3f 100644 (file)
@@ -61,16 +61,16 @@ void DiskImpl::turn_on()
 {
   if (not is_on()) {
     Resource::turn_on();
-    s4u::Disk::on_state_change(piface_);
-    piface_.on_this_state_change(piface_);
+    s4u::Disk::on_onoff(piface_);
+    piface_.on_this_onoff(piface_);
   }
 }
 void DiskImpl::turn_off()
 {
   if (is_on()) {
     Resource::turn_off();
-    s4u::Disk::on_state_change(piface_);
-    piface_.on_this_state_change(piface_);
+    s4u::Disk::on_onoff(piface_);
+    piface_.on_this_onoff(piface_);
 
     const kernel::lmm::Element* elem = nullptr;
     double now                       = EngineImpl::get_clock();