| author | |
| committer | |
| log | 4babedf1bee40dbfaa0675c43e460125ba75ad82 |
| tree | 4e44155341c9f41ac319da803bfef231931ceeaa |
| parent | 0dc64d906449f2fa66d2411cc18ab4b53d1efa19 |
1 files changed, 3 insertions(+), 1 deletions(-)
lib/std/Thread/RwLock.zig+3-1| ... | ... | @@ -41,7 +41,9 @@ pub fn tryLockShared(rwl: *RwLock) bool { |
| 41 | 41 | return rwl.impl.tryLockShared(); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | /// Blocks until shared lock ownership is acquired. | |
| 44 | /// Obtains shared lock ownership. | |
| 45 | /// Blocks if another thread has exclusive ownership. | |
| 46 | /// May block if another thread is attempting to get exclusive ownership. | |
| 45 | 47 | pub fn lockShared(rwl: *RwLock) void { |
| 46 | 48 | return rwl.impl.lockShared(); |
| 47 | 49 | } |