diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-28 08:00:33 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-30 07:00:45 +0100 |
commit | dadc9e7e4addbaad6c3249c883a80f6f8a33eafd (patch) | |
tree | 06901dda9eb5952a171db47f36fe696bea4e6201 | |
parent | 5a2ab9d55eb0cb018fc7095422581af9fdca0275 (diff) | |
download | cygnal-dadc9e7e4addbaad6c3249c883a80f6f8a33eafd.tar.gz cygnal-dadc9e7e4addbaad6c3249c883a80f6f8a33eafd.tar.bz2 cygnal-dadc9e7e4addbaad6c3249c883a80f6f8a33eafd.zip |
RTEMS: Add semaphore <sys/lock.h> functions
Declare semaphore try wait and post binary functions.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
-rw-r--r-- | newlib/libc/sys/rtems/include/sys/lock.h | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |