X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cdf6a962eb4e88efbed3df9c41343adabcf09e6c..f0534a5e2af72c36c12d55f7ea323040e6e9bf36:/include/simgrid/mutex.h diff --git a/include/simgrid/mutex.h b/include/simgrid/mutex.h index 47222d9fc4..12c5fa4a54 100644 --- a/include/simgrid/mutex.h +++ b/include/simgrid/mutex.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2019-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. */ @@ -9,13 +9,13 @@ #include /* C interface */ -SG_BEGIN_DECL() +SG_BEGIN_DECL XBT_PUBLIC sg_mutex_t sg_mutex_init(); XBT_PUBLIC void sg_mutex_lock(sg_mutex_t mutex); XBT_PUBLIC void sg_mutex_unlock(sg_mutex_t mutex); XBT_PUBLIC int sg_mutex_try_lock(sg_mutex_t mutex); -XBT_PUBLIC void sg_mutex_destroy(sg_mutex_t mutex); +XBT_PUBLIC void sg_mutex_destroy(const_sg_mutex_t mutex); -SG_END_DECL() +SG_END_DECL #endif /* INCLUDE_SIMGRID_MUTEX_H_ */