Print this page
5025 import and use mandoc
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Albert Lee <trisk@nexenta.com>
Approved by: TBD

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man9f/rwlock.9f
          +++ new/usr/src/man/man9f/rwlock.9f
↓ open down ↓ 132 lines elided ↑ open up ↑
 133  133  argument should be \fINULL.\fR
 134  134  .sp
 135  135  .LP
 136  136  The \fBrw_destroy()\fR function releases any resources that might have been
 137  137  allocated by \fBrw_init()\fR. It should be called before freeing the memory
 138  138  containing the lock. The lock must not be held by any thread when it is
 139  139  destroyed.
 140  140  .sp
 141  141  .LP
 142  142  The \fBrw_enter()\fR function acquires the lock, and blocks if necessary. If
 143      -\fIenter_type\fR is \fBRW_WRITER\fR, the caller blocks if any thread holds 
      143 +\fIenter_type\fR is \fBRW_WRITER\fR, the caller blocks if any thread holds
 144  144  the lock. If \fIenter_type\fR is \fBRW_READER\fR, the caller blocks if there
 145  145  is a writer or a thread attempting to enter for writing. If \fIenter_type\fR
 146  146  is \fBRW_READER_STARVEWRITER\fR, the caller blocks only if there is a writer;
 147  147  if the lock is held for reading and a thread is blocked attempting to enter
 148  148  for writing, the caller will acquire the lock as a reader instead of
 149  149  blocking on the pending writer.
 150  150  
 151  151  .sp
 152  152  .LP
 153  153  NOTE: It is a programming error for any thread to acquire an rwlock as
↓ open down ↓ 106 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX