return (smx_comm_t)xbt_fifo_get_item_content(xbt_fifo_get_first_item(rdv->comm_fifo));
}
+/** @brief adds some API-related data to the rendez-vous point */
+void SIMIX_rdv_set_data(smx_rdv_t rdv,void *data) {
+ rdv->data=data;
+}
+/** @brief gets API-related data from the rendez-vous point */
+void *SIMIX_rdv_get_data(smx_rdv_t rdv) {
+ return rdv->data;
+}
/******************************************************************************/
/* Communication Requests */
dst_buff_size = MIN(dst_buff_size, src_buff_size);
/* Update the receiver's buffer size to the copied amount */
- *comm->dst_buff_size = dst_buff_size;
+ if (comm->dst_buff_size)
+ *comm->dst_buff_size = dst_buff_size;
if(dst_buff_size == 0)
return;
/* Asynchronous Communication */
/******************************************************************************/
-/*
+
void SIMIX_network_wait(smx_action_t comm, double timeout)
{
- TO BE IMPLEMENTED
+ THROW_UNIMPLEMENTED;
}
XBT_PUBLIC(int) SIMIX_network_test(smx_action_t comm)
{
- TO BE IMPLEMENTED
-}*/
+ THROW_UNIMPLEMENTED;
+}