Skip to content

Commit 04282db

Browse files
committed
add doc-comment to unlock_queue
1 parent ff44ae7 commit 04282db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/std/src/sys/pal/unix/locks/queue_rwlock.rs

+3
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,9 @@ impl RwLock {
475475
}
476476
}
477477

478+
/// Unlocks the queue. If the lock is unlocked, wakes up the next eligible
479+
/// thread(s).
480+
///
478481
/// # Safety
479482
/// The queue lock must be held by the current thread.
480483
unsafe fn unlock_queue(&self, mut state: State) {

0 commit comments

Comments
 (0)