add doc-comment to `unlock_queue`

This commit is contained in:
joboet 2024-02-11 13:59:00 +01:00
parent ff44ae7428
commit 04282db5b3
No known key found for this signature in database
GPG Key ID: 704E0149B0194B3C
1 changed files with 3 additions and 0 deletions

View File

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