Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / include / simgrid / comm.h
1 /* Copyright (c) 2018-2023. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef INCLUDE_SIMGRID_COMM_H_
7 #define INCLUDE_SIMGRID_COMM_H_
8
9 #include <simgrid/forward.h>
10 #include <sys/types.h> /* ssize_t */
11
12 /* C interface */
13 SG_BEGIN_DECL
14
15 XBT_PUBLIC int sg_comm_isinstance(sg_activity_t acti);
16
17 XBT_PUBLIC void sg_comm_detach(sg_comm_t comm, void (*clean_function)(void*));
18 XBT_PUBLIC int sg_comm_test(sg_comm_t comm);
19 XBT_PUBLIC sg_error_t sg_comm_wait(sg_comm_t comm);
20 XBT_PUBLIC sg_error_t sg_comm_wait_for(sg_comm_t comm, double timeout);
21 XBT_PUBLIC void sg_comm_unref(sg_comm_t comm);
22
23 #ifndef DOXYGEN
24 XBT_ATTRIB_DEPRECATED_v339("Please use sg_activity_set_t instead") XBT_PUBLIC
25     void sg_comm_wait_all(sg_comm_t* comms, size_t count);
26 XBT_ATTRIB_DEPRECATED_v339("Please use sg_activity_set_t instead") XBT_PUBLIC
27     ssize_t sg_comm_wait_any_for(sg_comm_t* comms, size_t count, double timeout);
28 XBT_ATTRIB_DEPRECATED_v339("Please use sg_activity_set_t instead") XBT_PUBLIC
29     ssize_t sg_comm_wait_any(sg_comm_t* comms, size_t count);
30 #endif
31
32 SG_END_DECL
33
34 #endif /* INCLUDE_SIMGRID_COMM_H_ */