Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
setter function only need a simcall in MC or with parallel execs
[simgrid.git] / src / kernel / actor / Simcall.cpp
index 09c7cdf..622a6c8 100644 (file)
@@ -3,7 +3,7 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "Simcall.hpp"
+#include "src/kernel/actor/Simcall.hpp"
 #include "simgrid/s4u/Host.hpp"
 #include "src/kernel/actor/ActorImpl.hpp"
 #include "src/kernel/actor/SimcallObserver.hpp"
@@ -26,5 +26,13 @@ const char* Simcall::get_cname() const
     return to_c_str(call_);
   }
 }
+ObjectAccessSimcallItem::ObjectAccessSimcallItem()
+{
+  take_ownership();
+}
+void ObjectAccessSimcallItem::take_ownership()
+{
+  simcall_owner_ = ActorImpl::self();
+}
 
 } // namespace simgrid::kernel::actor