X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9104957deccc59e0e804215d5db498fabfd40d29..66f84edf2502421941eaaa74414323a16979b9ad:/include/simgrid/semaphore.h diff --git a/include/simgrid/semaphore.h b/include/simgrid/semaphore.h index 730a0899c1..1164b0cc4f 100644 --- a/include/simgrid/semaphore.h +++ b/include/simgrid/semaphore.h @@ -1,6 +1,6 @@ /* Public interface to the Link datatype */ -/* Copyright (c) 2018-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2018-2021. 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. */ @@ -16,9 +16,9 @@ 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 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(sg_sem_t sem); +XBT_PUBLIC int sg_sem_would_block(const_sg_sem_t sem); SG_END_DECL