Clarify the blocking behavior of RwLock.lockShared(). (#19752)

This commit is contained in:
IntegratedQuantum 2024-04-24 17:41:13 +02:00 committed by GitHub
parent f6f7a47aad
commit 1a6485d111
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,9 @@ pub fn tryLockShared(rwl: *RwLock) bool {
return rwl.impl.tryLockShared();
}
/// Blocks until shared lock ownership is acquired.
/// Obtains shared lock ownership.
/// Blocks if another thread has exclusive ownership.
/// May block if another thread is attempting to get exclusive ownership.
pub fn lockShared(rwl: *RwLock) void {
return rwl.impl.lockShared();
}