mirror of https://github.com/rust-lang/rust.git
add doc-comment to `unlock_queue`
This commit is contained in:
parent
ff44ae7428
commit
04282db5b3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue