Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix MC
[simgrid.git] / src / simix / smx_network_private.h
index 6eaa039..420e31e 100644 (file)
@@ -9,16 +9,17 @@
 
 #include <deque>
 #include <xbt/base.h>
+#include <boost/intrusive_ptr.hpp>
 
 #include "simgrid/simix.h"
 #include "popping_private.h"
 
 /** @brief Rendez-vous point datatype */
 typedef struct s_smx_mailbox {
-  char *name;
-  std::deque<smx_synchro_t> *comm_queue;
-  smx_process_t permanent_receiver; //process which the mailbox is attached to
-  std::deque<smx_synchro_t> *done_comm_queue;//messages already received in the permanent receive mode
+  char *name = nullptr;
+  std::deque<smx_synchro_t> *comm_queue = nullptr;
+  boost::intrusive_ptr<simgrid::simix::Process> permanent_receiver; //process which the mailbox is attached to
+  std::deque<smx_synchro_t> *done_comm_queue = nullptr;//messages already received in the permanent receive mode
 } s_smx_mailbox_t;
 
 XBT_PRIVATE void SIMIX_mailbox_exit(void);
@@ -37,4 +38,3 @@ XBT_PRIVATE smx_synchro_t SIMIX_comm_iprobe(smx_process_t dst_proc, smx_mailbox_
                               int tag, int (*match_fun)(void *, void *, smx_synchro_t), void *data);
 
 #endif
-