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/4fc1ebb64bce
branches:  trunk
changeset: 450401:4fc1ebb64bce
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 ee131b92aa52 -r 4fc1ebb64bce 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