diff --git a/lib/std/Thread/RwLock.zig b/lib/std/Thread/RwLock.zig index c4a875590730e01c3addcf7ae2505c0d04c7b409..0e8da6239f38374ef0b22f55e5f1c83f07f46f7d 100644 --- a/lib/std/Thread/RwLock.zig +++ b/lib/std/Thread/RwLock.zig @@ -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(); }