X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab5892145873c4600038ad2561a9800f994e4c35..f5f38e5b9cdacbf1ba1705bb7ed592b59f8e8712:/include/simgrid/comm.h diff --git a/include/simgrid/comm.h b/include/simgrid/comm.h index e63067614f..538122f18e 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-2023. 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. */ @@ -7,15 +7,27 @@ #define INCLUDE_SIMGRID_COMM_H_ #include -#include +#include /* ssize_t */ /* C interface */ SG_BEGIN_DECL +XBT_PUBLIC int sg_comm_isinstance(sg_activity_t acti); + +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 void sg_comm_wait_all(sg_comm_t* comms, size_t count); -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 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_unref(sg_comm_t comm); + +#ifndef DOXYGEN +XBT_ATTRIB_DEPRECATED_v339("Please use sg_activity_set_t instead") XBT_PUBLIC + void sg_comm_wait_all(sg_comm_t* comms, size_t count); +XBT_ATTRIB_DEPRECATED_v339("Please use sg_activity_set_t instead") XBT_PUBLIC + ssize_t sg_comm_wait_any_for(sg_comm_t* comms, size_t count, double timeout); +XBT_ATTRIB_DEPRECATED_v339("Please use sg_activity_set_t instead") XBT_PUBLIC + ssize_t sg_comm_wait_any(sg_comm_t* comms, size_t count); +#endif SG_END_DECL