From: Martin Quinson Date: Tue, 14 Jul 2015 22:08:32 +0000 (+0200) Subject: Revert "rename SIMIX_process_get_maxpid() to SIMIX_process_get_nextpid() and make... X-Git-Tag: v3_12~521 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8db9c51eaaa18daa45c57225025e66ed09bc3d49 Revert "rename SIMIX_process_get_maxpid() to SIMIX_process_get_nextpid() and make it public" This reverts commit 9306ddd4b063b1934dbab43f967e380d0181e393. --- diff --git a/include/simgrid/simix.h b/include/simgrid/simix.h index a4f89eb63c..c16e39d1cc 100644 --- a/include/simgrid/simix.h +++ b/include/simgrid/simix.h @@ -281,8 +281,6 @@ XBT_PUBLIC(void) SIMIX_process_set_context(smx_process_t p,smx_context_t c); XBT_PUBLIC(int) SIMIX_process_has_pending_comms(smx_process_t process); XBT_PUBLIC(void) SIMIX_process_on_exit_runall(smx_process_t process); XBT_PUBLIC(void) SIMIX_process_on_exit(smx_process_t process, int_f_pvoid_pvoid_t fun, void *data); -XBT_PUBLIC(int) SIMIX_process_get_nextpid(void); - /****************************** Communication *********************************/ XBT_PUBLIC(void) SIMIX_comm_set_copy_data_callback(void (*callback) (smx_synchro_t, void*, size_t)); diff --git a/src/msg/msg_process.c b/src/msg/msg_process.c index 6ce98b84fe..419e710c35 100644 --- a/src/msg/msg_process.c +++ b/src/msg/msg_process.c @@ -164,7 +164,7 @@ msg_process_t MSG_process_create_with_environment(const char *name, simdata->data = data; simdata->last_errno = MSG_OK; - int future_simix_process_pid = SIMIX_process_get_nextpid(); + int future_simix_process_pid = SIMIX_process_get_maxpid(); TRACE_msg_process_create(name, future_simix_process_pid, host); /* Let's create the process: SIMIX may decide to start it right now, diff --git a/src/simix/smx_private.h b/src/simix/smx_private.h index 7e975d4676..afc5e64af3 100644 --- a/src/simix/smx_private.h +++ b/src/simix/smx_private.h @@ -327,6 +327,8 @@ 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() diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index 86a581f132..f91a7a2a91 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -596,9 +596,7 @@ void SIMIX_process_resume(smx_process_t process, smx_process_t issuer) XBT_OUT(); } -/* Warning, the tracing mechanism uses this function to guess the future PID of the - * currently created process, Please do not change that feature */ -int SIMIX_process_get_nextpid(void) { +int SIMIX_process_get_maxpid(void) { return simix_process_maxpid; }