diff options
author | Richard Braun <rbraun@sceen.net> | 2017-08-27 16:55:36 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-08-27 16:55:36 +0200 |
commit | 50c583b698c4d1d13d1c0537c350691b18dd7033 (patch) | |
tree | 2745b01aea67d3559712b19a4376b2bad2232137 /kern/semaphore_i.h | |
parent | a509d86280d14b435640c446d81d85e53fd866e9 (diff) |
kern/semaphore: implement timed waits
Diffstat (limited to 'kern/semaphore_i.h')
-rw-r--r-- | kern/semaphore_i.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/semaphore_i.h b/kern/semaphore_i.h index acd7cd4..6e79b13 100644 --- a/kern/semaphore_i.h +++ b/kern/semaphore_i.h @@ -19,6 +19,7 @@ #define _KERN_SEMAPHORE_I_H #include <assert.h> +#include <stdint.h> #include <kern/atomic.h> @@ -56,6 +57,8 @@ semaphore_inc(struct semaphore *semaphore) void semaphore_wait_slow(struct semaphore *semaphore); +int semaphore_timedwait_slow(struct semaphore *semaphore, uint64_t ticks); + void semaphore_post_slow(struct semaphore *semaphore); #endif /* _KERN_SEMAPHORE_I_H */ |