X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7c6fac46098c8a91125db191e6ead34770933fc9..e39b010eca568061812e3981dd439ca98fa0b9b4:/include/simgrid/comm.h diff --git a/include/simgrid/comm.h b/include/simgrid/comm.h index ea808a9160..093cf1306d 100644 --- a/include/simgrid/comm.h +++ b/include/simgrid/comm.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2018-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2018-2021. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -12,7 +12,15 @@ /* C interface */ SG_BEGIN_DECL -XBT_PUBLIC int sg_comm_wait_any_for(const xbt_dynar_t comms, double timeout); +XBT_PUBLIC void sg_comm_detach(sg_comm_t comm, void (*clean_function)(void*)); +XBT_PUBLIC int sg_comm_test(sg_comm_t comm); +XBT_PUBLIC sg_error_t sg_comm_wait(sg_comm_t comm); +XBT_PUBLIC sg_error_t sg_comm_wait_for(sg_comm_t comm, double timeout); +XBT_PUBLIC void sg_comm_wait_all(sg_comm_t* comms, size_t count); +XBT_PUBLIC size_t sg_comm_wait_all_for(sg_comm_t* comms, size_t count, double timeout); +XBT_PUBLIC int sg_comm_wait_any_for(sg_comm_t* comms, size_t count, double timeout); +XBT_PUBLIC int sg_comm_wait_any(sg_comm_t* comms, size_t count); +XBT_PUBLIC void sg_comm_unref(sg_comm_t comm); SG_END_DECL