Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix MC with the class-hierarchification of simgrid::simix::Synchro
[simgrid.git] / src / s4u / s4u_async.cpp
index 5bbce9a..bf2f951 100644 (file)
@@ -6,7 +6,6 @@
 
 #include "xbt/log.h"
 #include "src/msg/msg_private.h"
-#include "src/msg/msg_mailbox.h"
 
 #include "simgrid/s4u/async.hpp"
 
@@ -22,7 +21,7 @@ s4u::Async::~Async() {
 }
 
 void s4u::Async::setRemains(double remains) {
-       xbt_assert(p_state == inited, "Cannot change the remaining amount of work once the Async is started");
-       p_remains = remains;
+  xbt_assert(state_ == inited, "Cannot change the remaining amount of work once the Async is started");
+  remains_ = remains;
 }