mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Clarify the blocking behavior of RwLock.lockShared(). (#19752)
This commit is contained in:
parent
0dc64d9064
commit
4babedf1be
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue