/* 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. */
+#include <xbt/ex.hpp>
+
#include "msg_private.h"
#include "xbt/sysdep.h"
#include "xbt/synchro_core.h"
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) {