diff options
author | attilio <attilio@FreeBSD.org> | 2008-04-01 20:56:45 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2008-04-01 20:56:45 +0000 |
commit | f4b9e6a6468e00c6ee1cd74320b7f2a3318cfaf1 (patch) | |
tree | 366b437147c838ff70c272837ffe7edf1d8b4114 /share/man/man9/rwlock.9 | |
parent | 40129db5502e314eafc68a73d874ad95b8d67165 (diff) | |
download | FreeBSD-src-f4b9e6a6468e00c6ee1cd74320b7f2a3318cfaf1.zip FreeBSD-src-f4b9e6a6468e00c6ee1cd74320b7f2a3318cfaf1.tar.gz |
Add manpages for rw_try_rlock() and rw_try_wlock() functions.
Diffstat (limited to 'share/man/man9/rwlock.9')
-rw-r--r-- | share/man/man9/rwlock.9 | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/share/man/man9/rwlock.9 b/share/man/man9/rwlock.9 index 4bc8312..5039a42 100644 --- a/share/man/man9/rwlock.9 +++ b/share/man/man9/rwlock.9 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd March 16, 2008 +.Dd April 1, 2008 .Dt RWLOCK 9 .Os .Sh NAME @@ -37,7 +37,9 @@ .Nm rw_runlock , .Nm rw_wunlock , .Nm rw_unlock , +.Nm rw_try_rlock , .Nm rw_try_upgrade , +.Nm rw_try_wlock , .Nm rw_downgrade , .Nm rw_sleep , .Nm rw_initialized , @@ -59,6 +61,10 @@ .Fn rw_rlock "struct rwlock *rw" .Ft void .Fn rw_wlock "struct rwlock *rw" +.Ft int +.Fn rw_try_rlock "struct rwlock *rw" +.Ft int +.Fn rw_try_wlock "struct rwlock *rw" .Ft void .Fn rw_runlock "struct rwlock *rw" .Ft void @@ -176,6 +182,18 @@ function can be called recursively only if has been initialized with the .Dv RW_RECURSE option enabled. +.It Fn rw_try_rlock "struct rwlock *rw" +Try to lock +.Fa rw +as a reader. +This function will return true if the operation succeeds, otherwise 0 +will be returned. +.It Fn rw_try_wlock "struct rwlock *rw" +Try to lock +.Fa rw +as a writer. +This function will return true if the operation succeeds, otherwise 0 +will be returned. .It Fn rw_runlock "struct rwlock *rw" This function releases a shared lock previously acquired by .Fn rw_rlock . |