Grammar fix, HTML quoting, sort SEE ALSO.
This commit is contained in:
parent
4b2675b81a
commit
abb7e1e8ca
@ -1,4 +1,4 @@
|
|||||||
.\" $NetBSD: RUN_ONCE.9,v 1.1 2005/11/24 08:14:13 yamt Exp $
|
.\" $NetBSD: RUN_ONCE.9,v 1.2 2005/11/24 19:36:43 wiz Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c)2005 YAMAMOTO Takashi,
|
.\" Copyright (c)2005 YAMAMOTO Takashi,
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
@ -56,7 +56,7 @@ It can sleep if it's called concurrently.
|
|||||||
The following example shows how
|
The following example shows how
|
||||||
.Fn RUN_ONCE
|
.Fn RUN_ONCE
|
||||||
is used.
|
is used.
|
||||||
Regardless to how many times
|
Regardless of how many times
|
||||||
.Fn some_func
|
.Fn some_func
|
||||||
is executed,
|
is executed,
|
||||||
.Fn init_func
|
.Fn init_func
|
||||||
@ -76,7 +76,7 @@ some_func(void)
|
|||||||
{
|
{
|
||||||
static DECL_ONCE(control);
|
static DECL_ONCE(control);
|
||||||
|
|
||||||
RUN_ONCE(&control, init_func);
|
RUN_ONCE(\*[Am]control, init_func);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we are sure that init_func has already been completed here.
|
* we are sure that init_func has already been completed here.
|
||||||
@ -85,6 +85,6 @@ some_func(void)
|
|||||||
.Ed
|
.Ed
|
||||||
.\" ------------------------------------------------------------
|
.\" ------------------------------------------------------------
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
|
.Xr pthread_once 3 ,
|
||||||
.Xr intro 9 ,
|
.Xr intro 9 ,
|
||||||
.Xr ltsleep 9 ,
|
.Xr ltsleep 9
|
||||||
.Xr pthread_once 3
|
|
||||||
|
Loading…
Reference in New Issue
Block a user