summaryrefslogtreecommitdiff
path: root/src/threads/thrd_sleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/threads/thrd_sleep.c')
-rw-r--r--src/threads/thrd_sleep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/threads/thrd_sleep.c b/src/threads/thrd_sleep.c
index cb8cd448..7ea445a2 100644
--- a/src/threads/thrd_sleep.c
+++ b/src/threads/thrd_sleep.c
@@ -6,6 +6,8 @@
int thrd_sleep(const struct timespec *duration, struct timespec *remaining)
{
SIGNAL_SAFE(0);
+ ASSERT_OVERLAP(duration, sizeof(*duration, remaining, sizeof(*remaining));
+
return nanosleep(duration, remaining);
}