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) {