[committed, PATCH 3/3] RTEMS: Add semaphore <sys/lock.h> functions
Sebastian Huber
sebastian.huber@embedded-brains.de
Thu Nov 30 08:50:00 GMT 2017
Declare semaphore try wait and post binary functions.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
newlib/libc/sys/rtems/include/sys/lock.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/newlib/libc/sys/rtems/include/sys/lock.h b/newlib/libc/sys/rtems/include/sys/lock.h
index 85b0cd8c4..d6169025b 100644
--- a/newlib/libc/sys/rtems/include/sys/lock.h
+++ b/newlib/libc/sys/rtems/include/sys/lock.h
@@ -300,8 +300,12 @@ int _Semaphore_Wait_timed(struct _Semaphore_Control *,
int _Semaphore_Wait_timed_ticks(struct _Semaphore_Control *, __uint32_t);
+int _Semaphore_Try_wait(struct _Semaphore_Control *);
+
void _Semaphore_Post(struct _Semaphore_Control *);
+void _Semaphore_Post_binary(struct _Semaphore_Control *);
+
static __inline void
_Semaphore_Destroy(struct _Semaphore_Control *_semaphore)
{
--
2.12.3
More information about the Newlib
mailing list