File: pthread_once.3

package info (click to toggle)
manpages-ja 0.5.0.0.20061115-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 19,788 kB
  • ctags: 4
  • sloc: sh: 13,215; perl: 157; makefile: 117
file content (96 lines) | stat: -rw-r--r-- 2,501 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
.\"   Copyright (C) 1996-1999 Free Software Foundation, Inc.
.\"
.\"   Permission is granted to make and distribute verbatim copies of
.\" this manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\"   Permission is granted to copy and distribute modified versions of
.\" this manual under the conditions for verbatim copying, provided that
.\" the entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\"   Permission is granted to copy and distribute translations of this
.\" manual into another language, under the above conditions for modified
.\" versions, except that this permission notice may be stated in a
.\" translation approved by the Foundation.
.\"
.\" Copyright (C) 1996 Xavier Leroy.
.\"
.\" Japanese Version Copyright (C) 2002-2003 Suzuki Takashi
.\"         all rights reserved.
.\" Translated Wed Jan  1 18:29:55 JST 2003
.\"         by Suzuki Takashi.
.\"
.\"
.TH PTHREAD_ONCE 3 LinuxThreads

.SH ̾
pthread_once \- 1 󤭤ν

.SH 
.B #include <pthread.h>

.BI "pthread_once_t " once_control " = PTHREAD_ONCE_INIT;"

.BI "int pthread_once(pthread_once_t *" once_control ", void (*" init_routine ") (void));"

.SH 

.B "pthread_once"
Ūϡ
ɤ⡹ 1 󤷤¹Ԥʤ褦ˤ뤳ȤǤ롣

.I "once_control"
ŪѿޤϳѿؤŪ
.B "PTHREAD_ONCE_INIT"
Ȥͤ˽ƤʤФʤʤ

ǽ˰
.I "once_control"
ȤȤ
.B "pthread_once"
ƤӽФ줿Ȥˤϡ
.I "init_routine"
ʤǸƤӽФ
ѿ
.I "once_control"
ͤѹƽԤʤ줿ȤϿ롣
θƱ
.B "once_control"
ȤȤ
.B "pthread_once"
ƤӽФ줿Ȥϲ⤷ʤ

.SH ֤
.B "pthread_once"
Ͼ 0 ֤

.SH 顼
ʤ

.SH 
Xavier Leroy <Xavier.Leroy@inria.fr>


[] glibc-linuxthreads κǿΥɥȤ Texinfo 󶡤Ƥ롣
ʲ glibc-linuxthreads-2.3.1  Texinfo ե뤫ΰѤǡ
פؤɵˤΤǤ롣

åɤ
.I "init_routine"
¹˼ä줿硢
.I "once_control"
ϥꥻåȤ졢
.B "pthread_once"
ƤӽФ줿Ȥ롼ϺƤӼ¹Ԥ롣

1 ĤޤʣΥåɤ
.B "pthread_once"
ν롼¹
ץ fork Ȥˤϡ
ҥץǤϤ줾
.I "once_control"
ѿϥꥻåȤ줿褦˸
ҥץ
.B "pthread_once"
ƤӽФ줿Ȥ롼ϼ¹Ԥ롣