From: Loris Lucido Date: Fri, 22 Jul 2016 15:19:52 +0000 (+0200) Subject: added return value for MSG_sem_get_capacity X-Git-Tag: v3_14~726^2^2^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/77af7e6ef6b089488af572b25e725beb3413e911?hp=-c;ds=sidebyside added return value for MSG_sem_get_capacity --- 77af7e6ef6b089488af572b25e725beb3413e911 diff --git a/include/simgrid/msg.h b/include/simgrid/msg.h index b3dce5f8de..ff1bcdf8c3 100644 --- a/include/simgrid/msg.h +++ b/include/simgrid/msg.h @@ -505,7 +505,7 @@ XBT_PUBLIC(msg_sem_t) MSG_sem_init(int initial_value); XBT_PUBLIC(void) MSG_sem_acquire(msg_sem_t sem); XBT_PUBLIC(msg_error_t) MSG_sem_acquire_timeout(msg_sem_t sem, double timeout); XBT_PUBLIC(void) MSG_sem_release(msg_sem_t sem); -XBT_PUBLIC(void) MSG_sem_get_capacity(msg_sem_t sem); +XBT_PUBLIC(int) MSG_sem_get_capacity(msg_sem_t sem); XBT_PUBLIC(void) MSG_sem_destroy(msg_sem_t sem); XBT_PUBLIC(int) MSG_sem_would_block(msg_sem_t sem); diff --git a/src/msg/msg_synchro.cpp b/src/msg/msg_synchro.cpp index ff5d328659..fa46da9ba5 100644 --- a/src/msg/msg_synchro.cpp +++ b/src/msg/msg_synchro.cpp @@ -46,8 +46,8 @@ void MSG_sem_release(msg_sem_t sem) { simcall_sem_release(sem); } -void MSG_sem_get_capacity(msg_sem_t sem) { - simcall_sem_get_capacity(sem); +int MSG_sem_get_capacity(msg_sem_t sem) { + return simcall_sem_get_capacity(sem); } void MSG_sem_destroy(msg_sem_t sem) {