Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fetch simix_process_maxpid from MCed
[simgrid.git] / src / mc / mc_model_checker.h
index 9ab2813..0b07e8e 100644 (file)
@@ -7,9 +7,15 @@
 #ifndef MC_MODEL_CHECKER_H
 #define MC_MODEL_CHECKER_H
 
+#include <sys/types.h>
+
 #include <simgrid_config.h>
+#include <xbt/dynar.h>
 
 #include "mc_forward.h"
+#include "mc_process.h"
+#include "mc_page_store.h"
+#include "mc_protocol.h"
 
 SG_BEGIN_DECL()
 
@@ -27,11 +33,21 @@ struct s_mc_model_checker {
   int fd_clear_refs;
   int fd_pagemap;
   xbt_dynar_t record;
+  s_mc_process_t process;
+  /** String pool for host names */
+  xbt_dict_t /* <hostname, NULL> */ hosts;
 };
 
-mc_model_checker_t MC_model_checker_new(void);
+mc_model_checker_t MC_model_checker_new(pid_t pid, int socket);
 void MC_model_checker_delete(mc_model_checker_t mc);
 
+static inline
+int MC_smx_get_maxpid(void)
+{
+  // Currently we use the same variable in STANDALONE and in SERVER mode:
+  return simix_process_maxpid;
+}
+
 SG_END_DECL()
 
 #endif