X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8d7ea40ec3f59b852b27ccb5ed9f75ab8ed6ffa0..40ee10e13b61bfb28374d96ade010a262b5abd44:/include/simgrid/semaphore.h diff --git a/include/simgrid/semaphore.h b/include/simgrid/semaphore.h index 61beb124a7..686d851e52 100644 --- a/include/simgrid/semaphore.h +++ b/include/simgrid/semaphore.h @@ -1,6 +1,6 @@ /* Public interface to the Link datatype */ -/* Copyright (c) 2018. 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. */ @@ -11,15 +11,15 @@ #include /* C interface */ -SG_BEGIN_DECL() +SG_BEGIN_DECL XBT_PUBLIC sg_sem_t sg_sem_init(int initial_value); XBT_PUBLIC void sg_sem_acquire(sg_sem_t sem); XBT_PUBLIC int sg_sem_acquire_timeout(sg_sem_t sem, double timeout); XBT_PUBLIC void sg_sem_release(sg_sem_t sem); -XBT_PUBLIC int sg_sem_get_capacity(sg_sem_t sem); -XBT_PUBLIC void sg_sem_destroy(sg_sem_t sem); -XBT_PUBLIC int sg_sem_would_block(sg_sem_t sem); +XBT_PUBLIC int sg_sem_get_capacity(const_sg_sem_t sem); +XBT_PUBLIC void sg_sem_destroy(const_sg_sem_t sem); +XBT_PUBLIC int sg_sem_would_block(const_sg_sem_t sem); -SG_END_DECL() +SG_END_DECL #endif /* INCLUDE_SIMGRID_SEMAPHORE_H_ */