diff options
author | Richard Braun <rbraun@sceen.net> | 2017-08-27 17:00:40 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-08-27 17:03:38 +0200 |
commit | e395627038e10c6e966a141743b95d7c286b25bd (patch) | |
tree | 746c543e9b04b90ead5bfa8f3d13b74c92df6ab9 /kern/mutex/mutex_pi_i.h | |
parent | b155465ec7984d8a3f8c07a5f548e457f31b6af3 (diff) |
kern/rtmutex: implement timed waits
Diffstat (limited to 'kern/mutex/mutex_pi_i.h')
-rw-r--r-- | kern/mutex/mutex_pi_i.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kern/mutex/mutex_pi_i.h b/kern/mutex/mutex_pi_i.h index 6c39db74..616f09b7 100644 --- a/kern/mutex/mutex_pi_i.h +++ b/kern/mutex/mutex_pi_i.h @@ -23,6 +23,8 @@ " use <kern/mutex.h> instead" #endif +#include <stdint.h> + #include <kern/mutex_types.h> #include <kern/rtmutex.h> @@ -51,6 +53,12 @@ mutex_impl_lock(struct mutex *mutex) rtmutex_lock(&mutex->rtmutex); } +static inline int +mutex_impl_timedlock(struct mutex *mutex, uint64_t ticks) +{ + return rtmutex_timedlock(&mutex->rtmutex, ticks); +} + static inline void mutex_impl_unlock(struct mutex *mutex) { |