Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename SIMIX_process_get_maxpid() to SIMIX_process_get_nextpid() and make it public
[simgrid.git] / src / simix / smx_private.h
index 60831b8..7e975d4 100644 (file)
@@ -47,6 +47,7 @@ typedef struct s_smx_global {
   xbt_dict_t registered_functions;
   smx_creation_func_t create_process_function;
   void_pfn_smxprocess_t_smxprocess_t kill_process_function;
+  /** Callback used when killing a SMX_process */
   void_pfn_smxprocess_t cleanup_process_function;
   xbt_mallocator_t synchro_mallocator;
   void_pfn_smxhost_t autorestart;
@@ -55,6 +56,8 @@ typedef struct s_smx_global {
   xbt_os_timer_t timer_seq; /* used to bench the sequential and parallel parts of the simulation, if requested to */
   xbt_os_timer_t timer_par;
 #endif
+
+  xbt_os_mutex_t mutex;
 } s_smx_global_t, *smx_global_t;
 
 XBT_PUBLIC_DATA(smx_global_t) simix_global;
@@ -324,8 +327,6 @@ static XBT_INLINE smx_process_t SIMIX_context_get_process(smx_context_t context)
   return simix_global->context_factory->get_process(context);
 }
 
-XBT_PUBLIC(int) SIMIX_process_get_maxpid(void);
-
 void SIMIX_post_create_environment(void);
 
 SG_END_DECL()