X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/08e7455d67920bbd7a87f440d00f2c1e071314a0..a707ad979be7c88d7581f403661c67598d320d55:/include/simgrid/comm.h diff --git a/include/simgrid/comm.h b/include/simgrid/comm.h index 540cab4b07..3767ebc528 100644 --- a/include/simgrid/comm.h +++ b/include/simgrid/comm.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2018-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2018-2022. 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,7 +7,7 @@ #define INCLUDE_SIMGRID_COMM_H_ #include -#include +#include /* ssize_t */ /* C interface */ SG_BEGIN_DECL @@ -17,8 +17,9 @@ 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 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 size_t sg_comm_wait_all_for(sg_comm_t* comms, size_t count, double timeout); +XBT_PUBLIC ssize_t sg_comm_wait_any_for(sg_comm_t* comms, size_t count, double timeout); +XBT_PUBLIC ssize_t sg_comm_wait_any(sg_comm_t* comms, size_t count); XBT_PUBLIC void sg_comm_unref(sg_comm_t comm); SG_END_DECL