mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 00:26:57 +00:00
Clarify the blocking behavior of RwLock.lockShared()
. (#19752)
This commit is contained in:
parent
f6f7a47aad
commit
1a6485d111
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user