diff options
author | ru <ru@FreeBSD.org> | 2004-07-03 18:29:24 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-07-03 18:29:24 +0000 |
commit | 1cf159866714352fd8d7789b97068220cbb5a1a4 (patch) | |
tree | 5526e5113f4e9589bb734483867453b89a7ca4e6 /share/man/man3/pthread_rwlock_rdlock.3 | |
parent | bf15efbfc56854d6fb20bb4ff7801d7549fe2bfd (diff) | |
download | FreeBSD-src-1cf159866714352fd8d7789b97068220cbb5a1a4.zip FreeBSD-src-1cf159866714352fd8d7789b97068220cbb5a1a4.tar.gz |
Mechanically kill hard sentence breaks and double whitespaces.
Diffstat (limited to 'share/man/man3/pthread_rwlock_rdlock.3')
-rw-r--r-- | share/man/man3/pthread_rwlock_rdlock.3 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/share/man/man3/pthread_rwlock_rdlock.3 b/share/man/man3/pthread_rwlock_rdlock.3 index 6c35a7d..6b8affd 100644 --- a/share/man/man3/pthread_rwlock_rdlock.3 +++ b/share/man/man3/pthread_rwlock_rdlock.3 @@ -49,17 +49,19 @@ function acquires a read lock on provided that .Fa lock is not presently held for writing and no writer threads are -presently blocked on the lock. If the read lock cannot be +presently blocked on the lock. +If the read lock cannot be immediately acquired, the calling thread blocks until it can acquire the lock. .Pp The .Fn pthread_rwlock_tryrdlock function performs the same action, but does not block if the lock -cannot be immediately obtained (i.e. the lock is held for writing +cannot be immediately obtained (i.e., the lock is held for writing or there are waiting writers). .Pp -A thread may hold multiple concurrent read locks. If so, +A thread may hold multiple concurrent read locks. +If so, .Fn pthread_rwlock_unlock must be called once for each lock obtained. .Pp @@ -72,7 +74,8 @@ If successful, the .Fn pthread_rwlock_rdlock and .Fn pthread_rwlock_tryrdlock -functions will return zero. Otherwise an error number will be returned +functions will return zero. +Otherwise an error number will be returned to indicate the error. .Sh SEE ALSO .Xr pthread_rwlock_init 3 , |