Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Dont pass as a parameter something that is already known as a field of the receiver...
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 14 Mar 2021 01:20:02 +0000 (02:20 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 14 Mar 2021 01:25:49 +0000 (02:25 +0100)
src/mc/ModelChecker.cpp
src/mc/ModelChecker.hpp

index faccd35..1a52b69 100644 (file)
@@ -115,12 +115,12 @@ void ModelChecker::shutdown()
   }
 }
 
-void ModelChecker::resume(RemoteProcess& process)
+void ModelChecker::resume()
 {
   int res = checker_side_.get_channel().send(MessageType::CONTINUE);
   if (res)
     throw xbt::errno_error();
-  process.clear_cache();
+  remote_process_->clear_cache();
 }
 
 static void MC_report_crash(int status)
@@ -297,7 +297,7 @@ void ModelChecker::handle_waitpid()
 
 void ModelChecker::wait_for_requests()
 {
-  this->resume(get_remote_process());
+  this->resume();
   if (this->get_remote_process().running())
     checker_side_.dispatch();
 }
index a01e78c..4807fbf 100644 (file)
@@ -47,7 +47,7 @@ public:
 
   void start();
   void shutdown();
-  void resume(simgrid::mc::RemoteProcess& process);
+  void resume();
   void wait_for_requests();
   void handle_simcall(Transition const& transition);