Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Update a comment.



details:   https://anonhg.NetBSD.org/src/rev/29d6e29d9d47
branches:  trunk
changeset: 848211:29d6e29d9d47
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Jan 21 04:09:10 2020 +0000

description:
Update a comment.

diffstat:

 sys/sys/rwlock.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (24 lines):

diff -r 756b2c53c9b0 -r 29d6e29d9d47 sys/sys/rwlock.h
--- a/sys/sys/rwlock.h  Tue Jan 21 03:29:56 2020 +0000
+++ b/sys/sys/rwlock.h  Tue Jan 21 04:09:10 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rwlock.h,v 1.13 2020/01/19 18:34:24 ad Exp $   */
+/*     $NetBSD: rwlock.h,v 1.14 2020/01/21 04:09:10 thorpej Exp $      */
 
 /*-
  * Copyright (c) 2002, 2006, 2007, 2008, 2019, 2020 The NetBSD Foundation, Inc.
@@ -63,10 +63,10 @@
  * WRITE_LOCKED bit is clear, then the owner field is actually a count of
  * the number of readers.  The rw_owner field is laid out like so:
  *
- *      N                    4        3        2        1        0
- *     +---------------------------------------------------------+
- *     | owner or read count | nodbug | wrlock | wrwant |  wait  |
- *     +---------------------------------------------------------+
+ *  N                     5        4        3        2        1        0
+ *  +------------------------------------------------------------------+
+ *  | owner or read count | nodbug | <free> | wrlock | wrwant |  wait  |
+ *  +------------------------------------------------------------------+
  */
 #define        RW_HAS_WAITERS          0x01UL  /* lock has waiters */
 #define        RW_WRITE_WANTED         0x02UL  /* >= 1 waiter is a writer */



Home | Main Index | Thread Index | Old Index