diff options
Diffstat (limited to 'src/threads/thrd_sleep.c')
-rw-r--r-- | src/threads/thrd_sleep.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/threads/thrd_sleep.c b/src/threads/thrd_sleep.c new file mode 100644 index 00000000..49c5522c --- /dev/null +++ b/src/threads/thrd_sleep.c @@ -0,0 +1,7 @@ +#include <threads.h> +#include <time.h> + +int thrd_sleep(const struct timespec *duration, struct timespec *remaining) +{ + return nanosleep(duration, remaining); +} |