From: Martin Quinson Date: Tue, 30 Aug 2016 15:21:30 +0000 (+0200) Subject: tiny cleanups in surf::VM X-Git-Tag: v3_14~458 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b6fcc4129a6eee8ac3e7e7db57062b6a5dd8bf51 tiny cleanups in surf::VM --- diff --git a/src/surf/virtual_machine.cpp b/src/surf/virtual_machine.cpp index 3b35bf3d14..dfb0d1afdb 100644 --- a/src/surf/virtual_machine.cpp +++ b/src/surf/virtual_machine.cpp @@ -90,8 +90,6 @@ void VirtualMachine::resume() void VirtualMachine::save() { vmState_ = SURF_VM_STATE_SAVING; - - /* FIXME: do something here */ action_->suspend(); vmState_ = SURF_VM_STATE_SAVED; } @@ -99,8 +97,6 @@ void VirtualMachine::save() void VirtualMachine::restore() { vmState_ = SURF_VM_STATE_RESTORING; - - /* FIXME: do something here */ action_->resume(); vmState_ = SURF_VM_STATE_RUNNING; } diff --git a/src/surf/virtual_machine.hpp b/src/surf/virtual_machine.hpp index b14a7440e6..0bdad3a93a 100644 --- a/src/surf/virtual_machine.hpp +++ b/src/surf/virtual_machine.hpp @@ -80,7 +80,7 @@ public: virtual void setBound(double bound)=0; /* The vm object of the lower layer */ - CpuAction *action_; + CpuAction *action_ = nullptr; protected: simgrid::s4u::Host *hostPM_;