Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
user data doesn't have to be stored at kernel level
[simgrid.git] / src / surf / HostImpl.hpp
index 474fc6e..fed3f37 100644 (file)
@@ -43,6 +43,7 @@ public:
  * @details An host represents a machine with a aggregation of a Cpu, a RoutingEdge and a Storage
  */
 class XBT_PRIVATE HostImpl : public simgrid::surf::PropertyHolder {
+  std::vector<kernel::actor::ProcessArg*> actors_at_boot_;
 
 public:
   friend simgrid::vm::VirtualMachineImpl;
@@ -62,11 +63,12 @@ public:
   s4u::Host* piface_ = nullptr;
 
   void turn_on();
-  void turn_off();
+  void turn_off(kernel::actor::ActorImpl* issuer);
   std::vector<s4u::ActorPtr> get_all_actors();
   size_t get_actor_count();
   void add_actor(kernel::actor::ActorImpl* actor) { actor_list_.push_back(*actor); }
   void remove_actor(kernel::actor::ActorImpl* actor) { xbt::intrusive_erase(actor_list_, *actor); }
+  void add_actor_at_boot(kernel::actor::ProcessArg* arg) { actors_at_boot_.emplace_back(arg); }
 
   typedef boost::intrusive::list<
       kernel::actor::ActorImpl,
@@ -76,7 +78,6 @@ public:
 
   // FIXME: make these private
   ActorList actor_list_;
-  std::vector<kernel::actor::ProcessArg*> actors_at_boot_;
 };
 }
 }