comparison docs/html/sdlcreatesemaphore.html @ 803:355632dca928

Updated SDL HTML documentation
author Sam Lantinga <slouken@libsdl.org>
date Tue, 10 Feb 2004 15:15:40 +0000
parents e5bc29de3f0a
children
comparison
equal deleted inserted replaced
802:3c609d54f100 803:355632dca928
2 ><HEAD 2 ><HEAD
3 ><TITLE 3 ><TITLE
4 >SDL_CreateSemaphore</TITLE 4 >SDL_CreateSemaphore</TITLE
5 ><META 5 ><META
6 NAME="GENERATOR" 6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64 7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
8 "><LINK 8 "><LINK
9 REL="HOME" 9 REL="HOME"
10 TITLE="SDL Library Documentation" 10 TITLE="SDL Library Documentation"
11 HREF="index.html"><LINK 11 HREF="index.html"><LINK
12 REL="UP" 12 REL="UP"
26 VLINK="#551a8b" 26 VLINK="#551a8b"
27 ALINK="#ff0000" 27 ALINK="#ff0000"
28 ><DIV 28 ><DIV
29 CLASS="NAVHEADER" 29 CLASS="NAVHEADER"
30 ><TABLE 30 ><TABLE
31 SUMMARY="Header navigation table"
31 WIDTH="100%" 32 WIDTH="100%"
32 BORDER="0" 33 BORDER="0"
33 CELLPADDING="0" 34 CELLPADDING="0"
34 CELLSPACING="0" 35 CELLSPACING="0"
35 ><TR 36 ><TR
43 WIDTH="10%" 44 WIDTH="10%"
44 ALIGN="left" 45 ALIGN="left"
45 VALIGN="bottom" 46 VALIGN="bottom"
46 ><A 47 ><A
47 HREF="sdlmutexv.html" 48 HREF="sdlmutexv.html"
49 ACCESSKEY="P"
48 >Prev</A 50 >Prev</A
49 ></TD 51 ></TD
50 ><TD 52 ><TD
51 WIDTH="80%" 53 WIDTH="80%"
52 ALIGN="center" 54 ALIGN="center"
56 WIDTH="10%" 58 WIDTH="10%"
57 ALIGN="right" 59 ALIGN="right"
58 VALIGN="bottom" 60 VALIGN="bottom"
59 ><A 61 ><A
60 HREF="sdldestroysemaphore.html" 62 HREF="sdldestroysemaphore.html"
63 ACCESSKEY="N"
61 >Next</A 64 >Next</A
62 ></TD 65 ></TD
63 ></TR 66 ></TR
64 ></TABLE 67 ></TABLE
65 ><HR 68 ><HR
66 ALIGN="LEFT" 69 ALIGN="LEFT"
67 WIDTH="100%"></DIV 70 WIDTH="100%"></DIV
68 ><H1 71 ><H1
69 ><A 72 ><A
70 NAME="SDLCREATESEMAPHORE" 73 NAME="SDLCREATESEMAPHORE"
71 >SDL_CreateSemaphore</A 74 ></A
72 ></H1 75 >SDL_CreateSemaphore</H1
73 ><DIV 76 ><DIV
74 CLASS="REFNAMEDIV" 77 CLASS="REFNAMEDIV"
75 ><A 78 ><A
76 NAME="AEN7548" 79 NAME="AEN7936"
77 ></A 80 ></A
78 ><H2 81 ><H2
79 >Name</H2 82 >Name</H2
80 >SDL_CreateSemaphore&nbsp;--&nbsp;Creates a new semaphore and assigns an initial value to it.</DIV 83 >SDL_CreateSemaphore&nbsp;--&nbsp;Creates a new semaphore and assigns an initial value to it.</DIV
81 ><DIV 84 ><DIV
82 CLASS="REFSYNOPSISDIV" 85 CLASS="REFSYNOPSISDIV"
83 ><A 86 ><A
84 NAME="AEN7551" 87 NAME="AEN7939"
85 ></A 88 ></A
86 ><H2 89 ><H2
87 >Synopsis</H2 90 >Synopsis</H2
88 ><DIV 91 ><DIV
89 CLASS="FUNCSYNOPSIS" 92 CLASS="FUNCSYNOPSIS"
90 ><A 93 ><A
91 NAME="AEN7552" 94 NAME="AEN7940"
92 ></A 95 ></A
93 ><P 96 ><P
94 ></P 97 ></P
95 ><PRE 98 ><PRE
96 CLASS="FUNCSYNOPSISINFO" 99 CLASS="FUNCSYNOPSISINFO"
111 ></DIV 114 ></DIV
112 ></DIV 115 ></DIV
113 ><DIV 116 ><DIV
114 CLASS="REFSECT1" 117 CLASS="REFSECT1"
115 ><A 118 ><A
116 NAME="AEN7558" 119 NAME="AEN7946"
117 ></A 120 ></A
118 ><H2 121 ><H2
119 >Description</H2 122 >Description</H2
120 ><P 123 ><P
121 ><TT 124 ><TT
150 will atomically increment the semaphore value.</P 153 will atomically increment the semaphore value.</P
151 ></DIV 154 ></DIV
152 ><DIV 155 ><DIV
153 CLASS="REFSECT1" 156 CLASS="REFSECT1"
154 ><A 157 ><A
155 NAME="AEN7567" 158 NAME="AEN7955"
156 ></A 159 ></A
157 ><H2 160 ><H2
158 >Return Value</H2 161 >Return Value</H2
159 ><P 162 ><P
160 >Returns a pointer to an initialized semaphore or 163 >Returns a pointer to an initialized semaphore or
164 > if there was an error.</P 167 > if there was an error.</P
165 ></DIV 168 ></DIV
166 ><DIV 169 ><DIV
167 CLASS="REFSECT1" 170 CLASS="REFSECT1"
168 ><A 171 ><A
169 NAME="AEN7571" 172 NAME="AEN7959"
170 ></A 173 ></A
171 ><H2 174 ><H2
172 >Examples</H2 175 >Examples</H2
173 ><P 176 ><P
174 ><PRE 177 ><PRE
183 ></P 186 ></P
184 ></DIV 187 ></DIV
185 ><DIV 188 ><DIV
186 CLASS="REFSECT1" 189 CLASS="REFSECT1"
187 ><A 190 ><A
188 NAME="AEN7575" 191 NAME="AEN7963"
189 ></A 192 ></A
190 ><H2 193 ><H2
191 >See Also</H2 194 >See Also</H2
192 ><P 195 ><P
193 ><A 196 ><A
236 ><DIV 239 ><DIV
237 CLASS="NAVFOOTER" 240 CLASS="NAVFOOTER"
238 ><HR 241 ><HR
239 ALIGN="LEFT" 242 ALIGN="LEFT"
240 WIDTH="100%"><TABLE 243 WIDTH="100%"><TABLE
244 SUMMARY="Footer navigation table"
241 WIDTH="100%" 245 WIDTH="100%"
242 BORDER="0" 246 BORDER="0"
243 CELLPADDING="0" 247 CELLPADDING="0"
244 CELLSPACING="0" 248 CELLSPACING="0"
245 ><TR 249 ><TR
247 WIDTH="33%" 251 WIDTH="33%"
248 ALIGN="left" 252 ALIGN="left"
249 VALIGN="top" 253 VALIGN="top"
250 ><A 254 ><A
251 HREF="sdlmutexv.html" 255 HREF="sdlmutexv.html"
256 ACCESSKEY="P"
252 >Prev</A 257 >Prev</A
253 ></TD 258 ></TD
254 ><TD 259 ><TD
255 WIDTH="34%" 260 WIDTH="34%"
256 ALIGN="center" 261 ALIGN="center"
257 VALIGN="top" 262 VALIGN="top"
258 ><A 263 ><A
259 HREF="index.html" 264 HREF="index.html"
265 ACCESSKEY="H"
260 >Home</A 266 >Home</A
261 ></TD 267 ></TD
262 ><TD 268 ><TD
263 WIDTH="33%" 269 WIDTH="33%"
264 ALIGN="right" 270 ALIGN="right"
265 VALIGN="top" 271 VALIGN="top"
266 ><A 272 ><A
267 HREF="sdldestroysemaphore.html" 273 HREF="sdldestroysemaphore.html"
274 ACCESSKEY="N"
268 >Next</A 275 >Next</A
269 ></TD 276 ></TD
270 ></TR 277 ></TR
271 ><TR 278 ><TR
272 ><TD 279 ><TD
278 WIDTH="34%" 285 WIDTH="34%"
279 ALIGN="center" 286 ALIGN="center"
280 VALIGN="top" 287 VALIGN="top"
281 ><A 288 ><A
282 HREF="thread.html" 289 HREF="thread.html"
290 ACCESSKEY="U"
283 >Up</A 291 >Up</A
284 ></TD 292 ></TD
285 ><TD 293 ><TD
286 WIDTH="33%" 294 WIDTH="33%"
287 ALIGN="right" 295 ALIGN="right"