Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
vm->destroy is not at kernel level ...
[simgrid.git] / src / simix / smx_host_private.hpp
index 6943f19..50a6f5f 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef SIMIX_HOST_PRIVATE_HPP
 #define SIMIX_HOST_PRIVATE_HPP
 
+#include <boost/intrusive/list.hpp>
 #include <functional>
 #include <map>
 #include <vector>
 #include "popping_private.hpp"
 #include "simgrid/simix.h"
 
+#include "ActorImpl.hpp"
 #include "src/kernel/activity/ExecImpl.hpp"
 
 /** @brief Host datatype from SIMIX POV */
 namespace simgrid {
 namespace simix {
-class ProcessArg;
 
 class Host {
 public:
@@ -30,7 +31,9 @@ public:
   explicit Host();
   virtual ~Host();
 
-  xbt_swag_t process_list;
+  boost::intrusive::list<ActorImpl, boost::intrusive::member_hook<ActorImpl, boost::intrusive::list_member_hook<>,
+                                                                  &ActorImpl::host_process_list_hook>>
+      process_list;
   std::vector<ProcessArg*> auto_restart_processes;
   std::vector<ProcessArg*> boot_processes;