X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cb025a65332d7a4d6b878b00873b3da07f15021a..1ae612ef301a26795068505cf761169ed29a5451:/src/simix/smx_process.c diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index e57176a749..bd3413769b 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -30,7 +30,16 @@ XBT_INLINE smx_process_t SIMIX_process_self(void) } /** - * \brief Move a process to the list of processes to destroy. + * \brief Returns whether a process has pending asynchronous communications. + * \return true if there are asynchronous communications in this process + */ +int SIMIX_process_has_pending_comms(smx_process_t process) { + + return xbt_fifo_size(process->comms) > 0; +} + +/** + * \brief Moves a process to the list of processes to destroy. */ void SIMIX_process_cleanup(smx_process_t process) {