Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 Split the examples into two separate literal ...
details:   https://anonhg.NetBSD.org/src/rev/d3bd22bf2b66
branches:  trunk
changeset: 998267:d3bd22bf2b66
user:      abhinav <abhinav%NetBSD.org@localhost>
date:      Fri Apr 12 11:02:22 2019 +0000
description:
Split the examples into two separate literal sections
ok wiz@
diffstat:
 share/man/man9/condvar.9 |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r e61d34912af6 -r d3bd22bf2b66 share/man/man9/condvar.9
--- a/share/man/man9/condvar.9  Fri Apr 12 10:57:27 2019 +0000
+++ b/share/man/man9/condvar.9  Fri Apr 12 11:02:22 2019 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: condvar.9,v 1.19 2017/11/13 09:09:28 wiz Exp $
+.\"    $NetBSD: condvar.9,v 1.20 2019/04/12 11:02:22 abhinav Exp $
 .\"
 .\" Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -263,9 +263,8 @@
 .Fn cv_wait .
 .El
 .Sh EXAMPLES
+Consuming a resource:
 .Bd -literal
-Consuming a resource:
-
        /*
         * Lock the resource.  Its mutex will also serve as the
         * interlock.
@@ -298,9 +297,10 @@
        res->state = BUSY;
        mutex_exit(&res->mutex);
        consume(res);
-
+.Ed
+.Pp
 Releasing a resource for the next consumer to use:
-
+.Bd -literal
        mutex_enter(&res->mutex);
        res->state = IDLE;
        cv_signal(&res->condvar);
Home |
Main Index |
Thread Index |
Old Index