From 04282db5b3a980c95e16970447a7cf0c76028bac Mon Sep 17 00:00:00 2001 From: joboet Date: Sun, 11 Feb 2024 13:59:00 +0100 Subject: [PATCH] add doc-comment to `unlock_queue` --- library/std/src/sys/pal/unix/locks/queue_rwlock.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/std/src/sys/pal/unix/locks/queue_rwlock.rs b/library/std/src/sys/pal/unix/locks/queue_rwlock.rs index 2bfa3017a1e..0f02a98dfdd 100644 --- a/library/std/src/sys/pal/unix/locks/queue_rwlock.rs +++ b/library/std/src/sys/pal/unix/locks/queue_rwlock.rs @@ -475,6 +475,9 @@ impl RwLock { } } + /// Unlocks the queue. If the lock is unlocked, wakes up the next eligible + /// thread(s). + /// /// # Safety /// The queue lock must be held by the current thread. unsafe fn unlock_queue(&self, mut state: State) {