aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-28 07:59:44 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-30 07:00:45 +0100
commit5a2ab9d55eb0cb018fc7095422581af9fdca0275 (patch)
tree9fe36c1a09caa04730fd79ccd5b7a3fc06bd943b /newlib
parent186166f67abcfe51f9224c868845a2742c44bbbf (diff)
downloadnewlib-5a2ab9d55eb0cb018fc7095422581af9fdca0275.zip
newlib-5a2ab9d55eb0cb018fc7095422581af9fdca0275.tar.gz
newlib-5a2ab9d55eb0cb018fc7095422581af9fdca0275.tar.bz2
RTEMS: Timed wait by ticks <sys/lock.h> functions
Declare timed wait by ticks functions. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/sys/rtems/include/sys/lock.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/newlib/libc/sys/rtems/include/sys/lock.h b/newlib/libc/sys/rtems/include/sys/lock.h
index f2666ed..85b0cd8 100644
--- a/newlib/libc/sys/rtems/include/sys/lock.h
+++ b/newlib/libc/sys/rtems/include/sys/lock.h
@@ -137,6 +137,8 @@ void _Mutex_Acquire(struct _Mutex_Control *);
int _Mutex_Acquire_timed(struct _Mutex_Control *, const struct timespec *);
+int _Mutex_Acquire_timed_ticks(struct _Mutex_Control *, __uint32_t);
+
int _Mutex_Try_acquire(struct _Mutex_Control *);
void _Mutex_Release(struct _Mutex_Control *);
@@ -185,6 +187,9 @@ void _Mutex_recursive_Acquire(struct _Mutex_recursive_Control *);
int _Mutex_recursive_Acquire_timed(struct _Mutex_recursive_Control *,
const struct timespec *);
+int _Mutex_recursive_Acquire_timed_ticks(struct _Mutex_recursive_Control *,
+ __uint32_t);
+
int _Mutex_recursive_Try_acquire(struct _Mutex_recursive_Control *);
void _Mutex_recursive_Release(struct _Mutex_recursive_Control *);
@@ -232,12 +237,18 @@ void _Condition_Wait(struct _Condition_Control *, struct _Mutex_Control *);
int _Condition_Wait_timed(struct _Condition_Control *,
struct _Mutex_Control *, const struct timespec *);
+int _Condition_Wait_timed_ticks(struct _Condition_Control *,
+ struct _Mutex_Control *, __uint32_t);
+
void _Condition_Wait_recursive(struct _Condition_Control *,
struct _Mutex_recursive_Control *);
int _Condition_Wait_recursive_timed(struct _Condition_Control *,
struct _Mutex_recursive_Control *, const struct timespec *);
+int _Condition_Wait_recursive_timed_ticks(struct _Condition_Control *,
+ struct _Mutex_recursive_Control *, __uint32_t);
+
void _Condition_Signal(struct _Condition_Control *);
void _Condition_Broadcast(struct _Condition_Control *);
@@ -284,6 +295,11 @@ _Semaphore_Get_name(const struct _Semaphore_Control *_semaphore)
void _Semaphore_Wait(struct _Semaphore_Control *);
+int _Semaphore_Wait_timed(struct _Semaphore_Control *,
+ const struct timespec *);
+
+int _Semaphore_Wait_timed_ticks(struct _Semaphore_Control *, __uint32_t);
+
void _Semaphore_Post(struct _Semaphore_Control *);
static __inline void