From: thiery Date: Tue, 15 Mar 2011 15:27:47 +0000 (+0000) Subject: Make SIMIX_comm_start() public (for a while :)) X-Git-Tag: v3.6_beta2~161 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/159f1801b853c2fa95755636d4845b3dbd68ff4f Make SIMIX_comm_start() public (for a while :)) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9799 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/simix/network_private.h b/src/simix/network_private.h index e658c3e7de..80c0a7cc67 100644 --- a/src/simix/network_private.h +++ b/src/simix/network_private.h @@ -29,6 +29,7 @@ void SIMIX_rdv_destroy(smx_rdv_t rdv); smx_rdv_t SIMIX_rdv_get_by_name(const char *name); int SIMIX_rdv_comm_count_by_host(smx_rdv_t rdv, smx_host_t host); smx_action_t SIMIX_rdv_get_head(smx_rdv_t rdv); +XBT_INLINE void SIMIX_comm_start(smx_action_t action); void SIMIX_comm_send(smx_process_t src_proc, smx_rdv_t rdv, double task_size, double rate, void *src_buff, size_t src_buff_size, diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index 5508aa835f..2d1a1e907a 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -15,7 +15,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_network, simix, static xbt_dict_t rdv_points = NULL; unsigned long int smx_total_comms = 0; -static XBT_INLINE void SIMIX_comm_start(smx_action_t action); static void SIMIX_waitany_req_remove_from_actions(smx_req_t req); static void SIMIX_comm_copy_data(smx_action_t comm); static smx_action_t SIMIX_comm_new(e_smx_comm_type_t type); @@ -467,7 +466,8 @@ void SIMIX_waitany_req_remove_from_actions(smx_req_t req) * \brief Start the simulation of a communication request * \param action The communication action */ -static XBT_INLINE void SIMIX_comm_start(smx_action_t action) + +XBT_INLINE void SIMIX_comm_start(smx_action_t action) { /* If both the sender and the receiver are already there, start the communication */ if (action->state == SIMIX_READY) {