From 985855bfcb6ff3f26ef4521f95cb773c8f61a916 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Mon, 19 Aug 2019 11:35:57 +0200 Subject: Document thread_delay --- kern/thread.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kern/thread.h b/kern/thread.h index d77b35f3..5a109233 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -267,6 +267,9 @@ int thread_resume(struct thread *thread); /* * Suspend execution of the calling thread. + * + * If this function causes the calling thread to yield the processor, + * this is an intra-thread release-acquire operation. */ void thread_delay(uint64_t ticks, bool absolute); -- cgit v1.2.3