Module Name:    src
Committed By:   abhinav
Date:           Fri Apr 12 11:02:22 UTC 2019

Modified Files:
        src/share/man/man9: condvar.9

Log Message:
Split the examples into two separate literal sections

ok wiz@


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/share/man/man9/condvar.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/condvar.9
diff -u src/share/man/man9/condvar.9:1.19 src/share/man/man9/condvar.9:1.20
--- src/share/man/man9/condvar.9:1.19	Mon Nov 13 09:09:28 2017
+++ src/share/man/man9/condvar.9	Fri Apr 12 11:02:22 2019
@@ -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 @@ be called while holding the interlocking
 .Fn cv_wait .
 .El
 .Sh EXAMPLES
-.Bd -literal
 Consuming a resource:
-
+.Bd -literal
 	/*
 	 * Lock the resource.  Its mutex will also serve as the
 	 * interlock.
@@ -298,9 +297,10 @@ Consuming a resource:
 	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);

Reply via email to