diff options
author | julian <julian@FreeBSD.org> | 2007-03-14 06:27:02 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2007-03-14 06:27:02 +0000 |
commit | 0f2fe5a5ddfbbce862221c80903b6c482da16162 (patch) | |
tree | 8b18b99d10928d923c8c01df5e80bd99635f3f21 /share/man/man9/locking.9 | |
parent | 3abc629530909a9716aa3d02bc5eda0a5e0c6f59 (diff) | |
download | FreeBSD-src-0f2fe5a5ddfbbce862221c80903b6c482da16162.zip FreeBSD-src-0f2fe5a5ddfbbce862221c80903b6c482da16162.tar.gz |
More suggestions from pjd.
Diffstat (limited to 'share/man/man9/locking.9')
-rw-r--r-- | share/man/man9/locking.9 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/share/man/man9/locking.9 b/share/man/man9/locking.9 index 4d90d4f..53ed07c 100644 --- a/share/man/man9/locking.9 +++ b/share/man/man9/locking.9 @@ -229,7 +229,8 @@ Largly deprecated. See the .Xr lock 9 page for more information. I don't know what the downsides are but I'm sure someone will fill in this part. -.Sh Interaction tables. +.Sh Usage tables. +.Ss Interaction table. The following table shows what you can and can not do if you hold one of the synchronisation primatives discussed here: (someone who knows what they are talking about should write this table) @@ -261,7 +262,17 @@ and Though one can sleep holding an sx lock, one can also use .Fn sx_sleep which atomically release this primative when going to sleep and reacquire it on wakeup. -.Pp +.Ss Context mode table. +The next table shows what can be used in differnt contexts. at this time this is a +rather easy to remember table. +.Bl -column ".Ic Xxxxxxxxxxxxxxxxxxxx" ".Xr XXXXXXXXX" ".Xr XXXXXXX" ".Xr XXXXXXX" ".Xr XXXXXXX" ".Xr XXXXX" -offset indent +.It Xo +.Em "Context:" Ta Spin_mtx Ta Slp_mtx Ta sx_lock Ta rw_lock Ta sleep +.Xc +.It interrupt: Ta \&ok Ta \&no Ta \&no Ta \&no Ta \&no +.It idle: Ta \&ok Ta \&no Ta \&no Ta \&no Ta \&no +.El +.Xc .Sh SEE ALSO .Xr condvar 9 , .Xr lock 9 |