summaryrefslogtreecommitdiff
path: root/kern/rtmutex.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-11-17 19:12:01 +0100
committerRichard Braun <rbraun@sceen.net>2018-11-17 19:12:01 +0100
commite0f66a3223c3abcb7d942b346b5af50978a47bc7 (patch)
tree4decc8ee4c83e4411ba07a43d92eda76797af031 /kern/rtmutex.c
parent86f2ef440909059a85222883c4272e7e241fe907 (diff)
kern/turnstile: improve comments
Diffstat (limited to 'kern/rtmutex.c')
-rw-r--r--kern/rtmutex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/rtmutex.c b/kern/rtmutex.c
index 10482d54..fa0419be 100644
--- a/kern/rtmutex.c
+++ b/kern/rtmutex.c
@@ -136,8 +136,9 @@ rtmutex_lock_slow_common(struct rtmutex *rtmutex, bool timed, uint64_t ticks)
/*
* Keep in mind more than one thread may have timed out on waiting.
* These threads aren't considered waiters, making the turnstile
- * empty. The first to reacquire the turnstile clears the contention
- * bits, allowing the owner to unlock through the fast path.
+ * potentially empty. The first to reacquire the turnstile clears
+ * the contention bits, allowing the owner to unlock through the
+ * fast path.
*/
if (turnstile_empty(turnstile)) {
owner = atomic_load(&rtmutex->owner, ATOMIC_RELAXED);