| ... | @@ -41,7 +41,9 @@ pub fn tryLockShared(rwl: *RwLock) bool { | ... | @@ -41,7 +41,9 @@ pub fn tryLockShared(rwl: *RwLock) bool { |
| 41 | return rwl.impl.tryLockShared(); | 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 | pub fn lockShared(rwl: *RwLock) void { | 47 | pub fn lockShared(rwl: *RwLock) void { |
| 46 | return rwl.impl.lockShared(); | 48 | return rwl.impl.lockShared(); |
| 47 | } | 49 | } |