X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0ae0dc6c811f90a65c57d3b551424d326e2da264..3dd753cd9e46d794e00629d03183250aec4a17e4:/include/simgrid/cond.h diff --git a/include/simgrid/cond.h b/include/simgrid/cond.h index 08c3318f18..4c32ac5e39 100644 --- a/include/simgrid/cond.h +++ b/include/simgrid/cond.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2019-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. */ @@ -9,7 +9,7 @@ #include /* C interface */ -SG_BEGIN_DECL() +SG_BEGIN_DECL /** @brief Creates a condition variable */ XBT_PUBLIC sg_cond_t sg_cond_init(); @@ -18,13 +18,13 @@ XBT_PUBLIC void sg_cond_wait(sg_cond_t cond, sg_mutex_t mutex); /** @brief Blocks onto the given condition variable, but only for the given amount of time. * @return 0 on success, 1 on timeout */ XBT_PUBLIC int sg_cond_wait_for(sg_cond_t cond, sg_mutex_t mutex, double delay); -/** @brief Signals the given mutex variable */ +/** @brief Signals the given condition variable */ XBT_PUBLIC void sg_cond_notify_one(sg_cond_t cond); -/** @brief Broadcasts the given mutex variable */ +/** @brief Broadcasts the given condition variable */ XBT_PUBLIC void sg_cond_notify_all(sg_cond_t cond); -/** @brief Destroys the given mutex variable */ -XBT_PUBLIC void sg_cond_destroy(sg_cond_t cond); +/** @brief Destroys the given condition variable */ +XBT_PUBLIC void sg_cond_destroy(const_sg_cond_t cond); -SG_END_DECL() +SG_END_DECL #endif /* INCLUDE_SIMGRID_COND_H_ */