summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kern/thread.h b/kern/thread.h
index 04eea2b5..e84300c9 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -231,6 +231,11 @@ int thread_timedsleep(struct spinlock *interlock, const void *wchan_addr,
int thread_wakeup(struct thread *thread);
/*
+ * Suspend execution of the calling thread.
+ */
+void thread_delay(uint64_t ticks, bool absolute);
+
+/*
* Start running threads on the local processor.
*
* Interrupts must be disabled when calling this function.