Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1 | <HTML |
2 | ><HEAD | ||||
3 | ><TITLE | ||||
4 | >threads</TITLE | ||||
5 | ><META | ||||
6 | NAME="GENERATOR" | ||||
7 | CONTENT="Modular DocBook HTML Stylesheet Version 1.64 | ||||
8 | "><LINK | ||||
9 | REL="HOME" | ||||
10 | TITLE="Gnome XML Library Reference Manual" | ||||
11 | HREF="book1.html"><LINK | ||||
12 | REL="UP" | ||||
13 | TITLE="Libxml Library Reference" | ||||
14 | HREF="libxml-lib.html"><LINK | ||||
15 | REL="PREVIOUS" | ||||
16 | TITLE="catalog" | ||||
17 | HREF="libxml-catalog.html"><LINK | ||||
18 | REL="NEXT" | ||||
19 | TITLE="globals" | ||||
20 | HREF="libxml-globals.html"></HEAD | ||||
21 | ><BODY | ||||
22 | CLASS="REFENTRY" | ||||
23 | BGCOLOR="#FFFFFF" | ||||
24 | TEXT="#000000" | ||||
25 | LINK="#0000FF" | ||||
26 | VLINK="#840084" | ||||
27 | ALINK="#0000FF" | ||||
28 | ><DIV | ||||
29 | CLASS="NAVHEADER" | ||||
30 | ><TABLE | ||||
31 | WIDTH="100%" | ||||
32 | BORDER="0" | ||||
33 | BGCOLOR="#000000" | ||||
34 | CELLPADDING="1" | ||||
35 | CELLSPACING="0" | ||||
36 | ><TR | ||||
37 | ><TH | ||||
38 | COLSPAN="4" | ||||
39 | ALIGN="center" | ||||
40 | ><FONT | ||||
41 | COLOR="#FFFFFF" | ||||
42 | SIZE="5" | ||||
43 | >Gnome XML Library Reference Manual</FONT | ||||
44 | ></TH | ||||
45 | ></TR | ||||
46 | ><TR | ||||
47 | ><TD | ||||
48 | WIDTH="25%" | ||||
49 | BGCOLOR="#C00000" | ||||
50 | ALIGN="left" | ||||
51 | ><A | ||||
52 | HREF="libxml-catalog.html" | ||||
53 | ><FONT | ||||
54 | COLOR="#FFFFFF" | ||||
55 | SIZE="3" | ||||
56 | ><B | ||||
57 | ><<< Previous Page</B | ||||
58 | ></FONT | ||||
59 | ></A | ||||
60 | ></TD | ||||
61 | ><TD | ||||
62 | WIDTH="25%" | ||||
63 | BGCOLOR="#0000C0" | ||||
64 | ALIGN="center" | ||||
65 | ><FONT | ||||
66 | COLOR="#FFFFFF" | ||||
67 | SIZE="3" | ||||
68 | ><B | ||||
69 | ><A | ||||
70 | HREF="book1.html" | ||||
71 | ><FONT | ||||
72 | COLOR="#FFFFFF" | ||||
73 | SIZE="3" | ||||
74 | ><B | ||||
75 | >Home</B | ||||
76 | ></FONT | ||||
77 | ></A | ||||
78 | ></B | ||||
79 | ></FONT | ||||
80 | ></TD | ||||
81 | ><TD | ||||
82 | WIDTH="25%" | ||||
83 | BGCOLOR="#00C000" | ||||
84 | ALIGN="center" | ||||
85 | ><FONT | ||||
86 | COLOR="#FFFFFF" | ||||
87 | SIZE="3" | ||||
88 | ><B | ||||
89 | ><A | ||||
90 | HREF="libxml-lib.html" | ||||
91 | ><FONT | ||||
92 | COLOR="#FFFFFF" | ||||
93 | SIZE="3" | ||||
94 | ><B | ||||
95 | >Up</B | ||||
96 | ></FONT | ||||
97 | ></A | ||||
98 | ></B | ||||
99 | ></FONT | ||||
100 | ></TD | ||||
101 | ><TD | ||||
102 | WIDTH="25%" | ||||
103 | BGCOLOR="#C00000" | ||||
104 | ALIGN="right" | ||||
105 | ><A | ||||
106 | HREF="libxml-globals.html" | ||||
107 | ><FONT | ||||
108 | COLOR="#FFFFFF" | ||||
109 | SIZE="3" | ||||
110 | ><B | ||||
111 | >Next Page >>></B | ||||
112 | ></FONT | ||||
113 | ></A | ||||
114 | ></TD | ||||
115 | ></TR | ||||
116 | ></TABLE | ||||
117 | ></DIV | ||||
118 | ><H1 | ||||
119 | ><A | ||||
120 | NAME="LIBXML-THREADS" | ||||
121 | >threads</A | ||||
122 | ></H1 | ||||
123 | ><DIV | ||||
124 | CLASS="REFNAMEDIV" | ||||
125 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 126 | NAME="AEN19926" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 127 | ></A |
128 | ><H2 | ||||
129 | >Name</H2 | ||||
130 | >threads -- </DIV | ||||
131 | ><DIV | ||||
132 | CLASS="REFSYNOPSISDIV" | ||||
133 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 134 | NAME="AEN19929" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 135 | ></A |
136 | ><H2 | ||||
137 | >Synopsis</H2 | ||||
138 | ><TABLE | ||||
139 | BORDER="0" | ||||
140 | BGCOLOR="#D6E8FF" | ||||
141 | WIDTH="100%" | ||||
142 | CELLPADDING="6" | ||||
143 | ><TR | ||||
144 | ><TD | ||||
145 | ><PRE | ||||
146 | CLASS="SYNOPSIS" | ||||
147 | > | ||||
148 | |||||
149 | struct <A | ||||
150 | HREF="libxml-threads.html#XMLMUTEX" | ||||
151 | >xmlMutex</A | ||||
152 | >; | ||||
153 | typedef <A | ||||
154 | HREF="libxml-threads.html#XMLMUTEXPTR" | ||||
155 | >xmlMutexPtr</A | ||||
156 | >; | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 157 | struct <A |
158 | HREF="libxml-threads.html#XMLRMUTEX" | ||||
159 | >xmlRMutex</A | ||||
160 | >; | ||||
161 | typedef <A | ||||
162 | HREF="libxml-threads.html#XMLRMUTEXPTR" | ||||
163 | >xmlRMutexPtr</A | ||||
164 | >; | ||||
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 165 | <A |
166 | HREF="libxml-threads.html#XMLMUTEXPTR" | ||||
167 | >xmlMutexPtr</A | ||||
168 | > <A | ||||
169 | HREF="libxml-threads.html#XMLNEWMUTEX" | ||||
170 | >xmlNewMutex</A | ||||
171 | > (void); | ||||
172 | void <A | ||||
173 | HREF="libxml-threads.html#XMLMUTEXLOCK" | ||||
174 | >xmlMutexLock</A | ||||
175 | > (<A | ||||
176 | HREF="libxml-threads.html#XMLMUTEXPTR" | ||||
177 | >xmlMutexPtr</A | ||||
178 | > tok); | ||||
179 | void <A | ||||
180 | HREF="libxml-threads.html#XMLMUTEXUNLOCK" | ||||
181 | >xmlMutexUnlock</A | ||||
182 | > (<A | ||||
183 | HREF="libxml-threads.html#XMLMUTEXPTR" | ||||
184 | >xmlMutexPtr</A | ||||
185 | > tok); | ||||
186 | void <A | ||||
187 | HREF="libxml-threads.html#XMLFREEMUTEX" | ||||
188 | >xmlFreeMutex</A | ||||
189 | > (<A | ||||
190 | HREF="libxml-threads.html#XMLMUTEXPTR" | ||||
191 | >xmlMutexPtr</A | ||||
192 | > tok); | ||||
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 193 | <A |
194 | HREF="libxml-threads.html#XMLRMUTEXPTR" | ||||
195 | >xmlRMutexPtr</A | ||||
196 | > <A | ||||
197 | HREF="libxml-threads.html#XMLNEWRMUTEX" | ||||
198 | >xmlNewRMutex</A | ||||
199 | > (void); | ||||
200 | void <A | ||||
201 | HREF="libxml-threads.html#XMLRMUTEXLOCK" | ||||
202 | >xmlRMutexLock</A | ||||
203 | > (<A | ||||
204 | HREF="libxml-threads.html#XMLRMUTEXPTR" | ||||
205 | >xmlRMutexPtr</A | ||||
206 | > tok); | ||||
207 | void <A | ||||
208 | HREF="libxml-threads.html#XMLRMUTEXUNLOCK" | ||||
209 | >xmlRMutexUnlock</A | ||||
210 | > (<A | ||||
211 | HREF="libxml-threads.html#XMLRMUTEXPTR" | ||||
212 | >xmlRMutexPtr</A | ||||
213 | > tok); | ||||
214 | void <A | ||||
215 | HREF="libxml-threads.html#XMLFREERMUTEX" | ||||
216 | >xmlFreeRMutex</A | ||||
217 | > (<A | ||||
218 | HREF="libxml-threads.html#XMLRMUTEXPTR" | ||||
219 | >xmlRMutexPtr</A | ||||
220 | > tok); | ||||
221 | void <A | ||||
222 | HREF="libxml-threads.html#XMLINITTHREADS" | ||||
223 | >xmlInitThreads</A | ||||
224 | > (void); | ||||
225 | void <A | ||||
226 | HREF="libxml-threads.html#XMLLOCKLIBRARY" | ||||
227 | >xmlLockLibrary</A | ||||
228 | > (void); | ||||
229 | void <A | ||||
230 | HREF="libxml-threads.html#XMLUNLOCKLIBRARY" | ||||
231 | >xmlUnlockLibrary</A | ||||
232 | > (void); | ||||
233 | int <A | ||||
234 | HREF="libxml-threads.html#XMLGETTHREADID" | ||||
235 | >xmlGetThreadId</A | ||||
236 | > (void); | ||||
237 | int <A | ||||
238 | HREF="libxml-threads.html#XMLISMAINTHREAD" | ||||
239 | >xmlIsMainThread</A | ||||
240 | > (void); | ||||
241 | void <A | ||||
242 | HREF="libxml-threads.html#XMLCLEANUPTHREADS" | ||||
243 | >xmlCleanupThreads</A | ||||
244 | > (void); | ||||
245 | <A | ||||
246 | HREF="libxml-globals.html#XMLGLOBALSTATEPTR" | ||||
247 | >xmlGlobalStatePtr</A | ||||
248 | > <A | ||||
249 | HREF="libxml-threads.html#XMLGETGLOBALSTATE" | ||||
250 | >xmlGetGlobalState</A | ||||
251 | > (void);</PRE | ||||
252 | ></TD | ||||
253 | ></TR | ||||
254 | ></TABLE | ||||
255 | ></DIV | ||||
256 | ><DIV | ||||
257 | CLASS="REFSECT1" | ||||
258 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 259 | NAME="AEN19960" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 260 | ></A |
261 | ><H2 | ||||
262 | >Description</H2 | ||||
263 | ><P | ||||
264 | ></P | ||||
265 | ></DIV | ||||
266 | ><DIV | ||||
267 | CLASS="REFSECT1" | ||||
268 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 269 | NAME="AEN19963" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 270 | ></A |
271 | ><H2 | ||||
272 | >Details</H2 | ||||
273 | ><DIV | ||||
274 | CLASS="REFSECT2" | ||||
275 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 276 | NAME="AEN19965" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 277 | ></A |
278 | ><H3 | ||||
279 | ><A | ||||
280 | NAME="XMLMUTEX" | ||||
281 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 282 | >>struct xmlMutex</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 283 | ><TABLE |
284 | BORDER="0" | ||||
285 | BGCOLOR="#D6E8FF" | ||||
286 | WIDTH="100%" | ||||
287 | CELLPADDING="6" | ||||
288 | ><TR | ||||
289 | ><TD | ||||
290 | ><PRE | ||||
291 | CLASS="PROGRAMLISTING" | ||||
292 | >struct xmlMutex;</PRE | ||||
293 | ></TD | ||||
294 | ></TR | ||||
295 | ></TABLE | ||||
296 | ><P | ||||
297 | ></P | ||||
298 | ></DIV | ||||
299 | ><HR><DIV | ||||
300 | CLASS="REFSECT2" | ||||
301 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 302 | NAME="AEN19970" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 303 | ></A |
304 | ><H3 | ||||
305 | ><A | ||||
306 | NAME="XMLMUTEXPTR" | ||||
307 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 308 | >>xmlMutexPtr</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 309 | ><TABLE |
310 | BORDER="0" | ||||
311 | BGCOLOR="#D6E8FF" | ||||
312 | WIDTH="100%" | ||||
313 | CELLPADDING="6" | ||||
314 | ><TR | ||||
315 | ><TD | ||||
316 | ><PRE | ||||
317 | CLASS="PROGRAMLISTING" | ||||
318 | >typedef xmlMutex *xmlMutexPtr;</PRE | ||||
319 | ></TD | ||||
320 | ></TR | ||||
321 | ></TABLE | ||||
322 | ><P | ||||
323 | ><A | ||||
324 | HREF="libxml-threads.html#XMLNEWMUTEX" | ||||
325 | >xmlNewMutex</A | ||||
326 | >() is used to allocate a libxml2 token struct for use in | ||||
327 | synchronizing access to data.</P | ||||
328 | ><P | ||||
329 | ></P | ||||
330 | ></DIV | ||||
331 | ><HR><DIV | ||||
332 | CLASS="REFSECT2" | ||||
333 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 334 | NAME="AEN19977" |
335 | ></A | ||||
336 | ><H3 | ||||
337 | ><A | ||||
338 | NAME="XMLRMUTEX" | ||||
339 | ></A | ||||
340 | >>struct xmlRMutex</H3 | ||||
341 | ><TABLE | ||||
342 | BORDER="0" | ||||
343 | BGCOLOR="#D6E8FF" | ||||
344 | WIDTH="100%" | ||||
345 | CELLPADDING="6" | ||||
346 | ><TR | ||||
347 | ><TD | ||||
348 | ><PRE | ||||
349 | CLASS="PROGRAMLISTING" | ||||
350 | >struct xmlRMutex;</PRE | ||||
351 | ></TD | ||||
352 | ></TR | ||||
353 | ></TABLE | ||||
354 | ><P | ||||
355 | ></P | ||||
356 | ></DIV | ||||
357 | ><HR><DIV | ||||
358 | CLASS="REFSECT2" | ||||
359 | ><A | ||||
360 | NAME="AEN19982" | ||||
361 | ></A | ||||
362 | ><H3 | ||||
363 | ><A | ||||
364 | NAME="XMLRMUTEXPTR" | ||||
365 | ></A | ||||
366 | >>xmlRMutexPtr</H3 | ||||
367 | ><TABLE | ||||
368 | BORDER="0" | ||||
369 | BGCOLOR="#D6E8FF" | ||||
370 | WIDTH="100%" | ||||
371 | CELLPADDING="6" | ||||
372 | ><TR | ||||
373 | ><TD | ||||
374 | ><PRE | ||||
375 | CLASS="PROGRAMLISTING" | ||||
376 | >typedef xmlRMutex *xmlRMutexPtr;</PRE | ||||
377 | ></TD | ||||
378 | ></TR | ||||
379 | ></TABLE | ||||
380 | ><P | ||||
381 | ></P | ||||
382 | ></DIV | ||||
383 | ><HR><DIV | ||||
384 | CLASS="REFSECT2" | ||||
385 | ><A | ||||
386 | NAME="AEN19987" | ||||
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 387 | ></A |
388 | ><H3 | ||||
389 | ><A | ||||
390 | NAME="XMLNEWMUTEX" | ||||
391 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 392 | >>xmlNewMutex ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 393 | ><TABLE |
394 | BORDER="0" | ||||
395 | BGCOLOR="#D6E8FF" | ||||
396 | WIDTH="100%" | ||||
397 | CELLPADDING="6" | ||||
398 | ><TR | ||||
399 | ><TD | ||||
400 | ><PRE | ||||
401 | CLASS="PROGRAMLISTING" | ||||
402 | ><A | ||||
403 | HREF="libxml-threads.html#XMLMUTEXPTR" | ||||
404 | >xmlMutexPtr</A | ||||
405 | > xmlNewMutex (void);</PRE | ||||
406 | ></TD | ||||
407 | ></TR | ||||
408 | ></TABLE | ||||
409 | ><P | ||||
410 | ></P | ||||
411 | ><DIV | ||||
412 | CLASS="INFORMALTABLE" | ||||
413 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 414 | NAME="AEN19993" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 415 | ></A |
416 | ><P | ||||
417 | ></P | ||||
418 | ><TABLE | ||||
419 | BORDER="0" | ||||
420 | WIDTH="100%" | ||||
421 | BGCOLOR="#FFD0D0" | ||||
422 | CELLSPACING="0" | ||||
423 | CELLPADDING="4" | ||||
424 | CLASS="CALSTABLE" | ||||
425 | ><TBODY | ||||
426 | ><TR | ||||
427 | ><TD | ||||
428 | WIDTH="20%" | ||||
429 | ALIGN="RIGHT" | ||||
430 | VALIGN="TOP" | ||||
431 | ><I | ||||
432 | CLASS="EMPHASIS" | ||||
433 | >Returns</I | ||||
434 | > :</TD | ||||
435 | ><TD | ||||
436 | WIDTH="80%" | ||||
437 | ALIGN="LEFT" | ||||
438 | VALIGN="TOP" | ||||
439 | > </TD | ||||
440 | ></TR | ||||
441 | ></TBODY | ||||
442 | ></TABLE | ||||
443 | ><P | ||||
444 | ></P | ||||
445 | ></DIV | ||||
446 | ></DIV | ||||
447 | ><HR><DIV | ||||
448 | CLASS="REFSECT2" | ||||
449 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 450 | NAME="AEN20002" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 451 | ></A |
452 | ><H3 | ||||
453 | ><A | ||||
454 | NAME="XMLMUTEXLOCK" | ||||
455 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 456 | >>xmlMutexLock ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 457 | ><TABLE |
458 | BORDER="0" | ||||
459 | BGCOLOR="#D6E8FF" | ||||
460 | WIDTH="100%" | ||||
461 | CELLPADDING="6" | ||||
462 | ><TR | ||||
463 | ><TD | ||||
464 | ><PRE | ||||
465 | CLASS="PROGRAMLISTING" | ||||
466 | >void xmlMutexLock (<A | ||||
467 | HREF="libxml-threads.html#XMLMUTEXPTR" | ||||
468 | >xmlMutexPtr</A | ||||
469 | > tok);</PRE | ||||
470 | ></TD | ||||
471 | ></TR | ||||
472 | ></TABLE | ||||
473 | ><P | ||||
474 | ><A | ||||
475 | HREF="libxml-threads.html#XMLMUTEXLOCK" | ||||
476 | >xmlMutexLock</A | ||||
477 | >() is used to lock a libxml2 token.</P | ||||
478 | ><P | ||||
479 | ></P | ||||
480 | ><DIV | ||||
481 | CLASS="INFORMALTABLE" | ||||
482 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 483 | NAME="AEN20010" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 484 | ></A |
485 | ><P | ||||
486 | ></P | ||||
487 | ><TABLE | ||||
488 | BORDER="0" | ||||
489 | WIDTH="100%" | ||||
490 | BGCOLOR="#FFD0D0" | ||||
491 | CELLSPACING="0" | ||||
492 | CELLPADDING="4" | ||||
493 | CLASS="CALSTABLE" | ||||
494 | ><TBODY | ||||
495 | ><TR | ||||
496 | ><TD | ||||
497 | WIDTH="20%" | ||||
498 | ALIGN="RIGHT" | ||||
499 | VALIGN="TOP" | ||||
500 | ><TT | ||||
501 | CLASS="PARAMETER" | ||||
502 | ><I | ||||
503 | >tok</I | ||||
504 | ></TT | ||||
505 | > :</TD | ||||
506 | ><TD | ||||
507 | WIDTH="80%" | ||||
508 | ALIGN="LEFT" | ||||
509 | VALIGN="TOP" | ||||
510 | > the simple mutex</TD | ||||
511 | ></TR | ||||
512 | ></TBODY | ||||
513 | ></TABLE | ||||
514 | ><P | ||||
515 | ></P | ||||
516 | ></DIV | ||||
517 | ></DIV | ||||
518 | ><HR><DIV | ||||
519 | CLASS="REFSECT2" | ||||
520 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 521 | NAME="AEN20019" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 522 | ></A |
523 | ><H3 | ||||
524 | ><A | ||||
525 | NAME="XMLMUTEXUNLOCK" | ||||
526 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 527 | >>xmlMutexUnlock ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 528 | ><TABLE |
529 | BORDER="0" | ||||
530 | BGCOLOR="#D6E8FF" | ||||
531 | WIDTH="100%" | ||||
532 | CELLPADDING="6" | ||||
533 | ><TR | ||||
534 | ><TD | ||||
535 | ><PRE | ||||
536 | CLASS="PROGRAMLISTING" | ||||
537 | >void xmlMutexUnlock (<A | ||||
538 | HREF="libxml-threads.html#XMLMUTEXPTR" | ||||
539 | >xmlMutexPtr</A | ||||
540 | > tok);</PRE | ||||
541 | ></TD | ||||
542 | ></TR | ||||
543 | ></TABLE | ||||
544 | ><P | ||||
545 | ><A | ||||
546 | HREF="libxml-threads.html#XMLMUTEXUNLOCK" | ||||
547 | >xmlMutexUnlock</A | ||||
548 | >() is used to unlock a libxml2 token.</P | ||||
549 | ><P | ||||
550 | ></P | ||||
551 | ><DIV | ||||
552 | CLASS="INFORMALTABLE" | ||||
553 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 554 | NAME="AEN20027" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 555 | ></A |
556 | ><P | ||||
557 | ></P | ||||
558 | ><TABLE | ||||
559 | BORDER="0" | ||||
560 | WIDTH="100%" | ||||
561 | BGCOLOR="#FFD0D0" | ||||
562 | CELLSPACING="0" | ||||
563 | CELLPADDING="4" | ||||
564 | CLASS="CALSTABLE" | ||||
565 | ><TBODY | ||||
566 | ><TR | ||||
567 | ><TD | ||||
568 | WIDTH="20%" | ||||
569 | ALIGN="RIGHT" | ||||
570 | VALIGN="TOP" | ||||
571 | ><TT | ||||
572 | CLASS="PARAMETER" | ||||
573 | ><I | ||||
574 | >tok</I | ||||
575 | ></TT | ||||
576 | > :</TD | ||||
577 | ><TD | ||||
578 | WIDTH="80%" | ||||
579 | ALIGN="LEFT" | ||||
580 | VALIGN="TOP" | ||||
581 | > the simple mutex</TD | ||||
582 | ></TR | ||||
583 | ></TBODY | ||||
584 | ></TABLE | ||||
585 | ><P | ||||
586 | ></P | ||||
587 | ></DIV | ||||
588 | ></DIV | ||||
589 | ><HR><DIV | ||||
590 | CLASS="REFSECT2" | ||||
591 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 592 | NAME="AEN20036" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 593 | ></A |
594 | ><H3 | ||||
595 | ><A | ||||
596 | NAME="XMLFREEMUTEX" | ||||
597 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 598 | >>xmlFreeMutex ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 599 | ><TABLE |
600 | BORDER="0" | ||||
601 | BGCOLOR="#D6E8FF" | ||||
602 | WIDTH="100%" | ||||
603 | CELLPADDING="6" | ||||
604 | ><TR | ||||
605 | ><TD | ||||
606 | ><PRE | ||||
607 | CLASS="PROGRAMLISTING" | ||||
608 | >void xmlFreeMutex (<A | ||||
609 | HREF="libxml-threads.html#XMLMUTEXPTR" | ||||
610 | >xmlMutexPtr</A | ||||
611 | > tok);</PRE | ||||
612 | ></TD | ||||
613 | ></TR | ||||
614 | ></TABLE | ||||
615 | ><P | ||||
616 | ><A | ||||
617 | HREF="libxml-threads.html#XMLFREEMUTEX" | ||||
618 | >xmlFreeMutex</A | ||||
619 | >() is used to reclaim resources associated with a libxml2 token | ||||
620 | struct.</P | ||||
621 | ><P | ||||
622 | ></P | ||||
623 | ><DIV | ||||
624 | CLASS="INFORMALTABLE" | ||||
625 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 626 | NAME="AEN20044" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 627 | ></A |
628 | ><P | ||||
629 | ></P | ||||
630 | ><TABLE | ||||
631 | BORDER="0" | ||||
632 | WIDTH="100%" | ||||
633 | BGCOLOR="#FFD0D0" | ||||
634 | CELLSPACING="0" | ||||
635 | CELLPADDING="4" | ||||
636 | CLASS="CALSTABLE" | ||||
637 | ><TBODY | ||||
638 | ><TR | ||||
639 | ><TD | ||||
640 | WIDTH="20%" | ||||
641 | ALIGN="RIGHT" | ||||
642 | VALIGN="TOP" | ||||
643 | ><TT | ||||
644 | CLASS="PARAMETER" | ||||
645 | ><I | ||||
646 | >tok</I | ||||
647 | ></TT | ||||
648 | > :</TD | ||||
649 | ><TD | ||||
650 | WIDTH="80%" | ||||
651 | ALIGN="LEFT" | ||||
652 | VALIGN="TOP" | ||||
653 | > the simple mutex</TD | ||||
654 | ></TR | ||||
655 | ></TBODY | ||||
656 | ></TABLE | ||||
657 | ><P | ||||
658 | ></P | ||||
659 | ></DIV | ||||
660 | ></DIV | ||||
661 | ><HR><DIV | ||||
662 | CLASS="REFSECT2" | ||||
663 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 664 | NAME="AEN20053" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 665 | ></A |
666 | ><H3 | ||||
667 | ><A | ||||
668 | NAME="XMLNEWRMUTEX" | ||||
669 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 670 | >>xmlNewRMutex ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 671 | ><TABLE |
672 | BORDER="0" | ||||
673 | BGCOLOR="#D6E8FF" | ||||
674 | WIDTH="100%" | ||||
675 | CELLPADDING="6" | ||||
676 | ><TR | ||||
677 | ><TD | ||||
678 | ><PRE | ||||
679 | CLASS="PROGRAMLISTING" | ||||
680 | ><A | ||||
681 | HREF="libxml-threads.html#XMLRMUTEXPTR" | ||||
682 | >xmlRMutexPtr</A | ||||
683 | > xmlNewRMutex (void);</PRE | ||||
684 | ></TD | ||||
685 | ></TR | ||||
686 | ></TABLE | ||||
687 | ><P | ||||
688 | ></P | ||||
689 | ><DIV | ||||
690 | CLASS="INFORMALTABLE" | ||||
691 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 692 | NAME="AEN20059" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 693 | ></A |
694 | ><P | ||||
695 | ></P | ||||
696 | ><TABLE | ||||
697 | BORDER="0" | ||||
698 | WIDTH="100%" | ||||
699 | BGCOLOR="#FFD0D0" | ||||
700 | CELLSPACING="0" | ||||
701 | CELLPADDING="4" | ||||
702 | CLASS="CALSTABLE" | ||||
703 | ><TBODY | ||||
704 | ><TR | ||||
705 | ><TD | ||||
706 | WIDTH="20%" | ||||
707 | ALIGN="RIGHT" | ||||
708 | VALIGN="TOP" | ||||
709 | ><I | ||||
710 | CLASS="EMPHASIS" | ||||
711 | >Returns</I | ||||
712 | > :</TD | ||||
713 | ><TD | ||||
714 | WIDTH="80%" | ||||
715 | ALIGN="LEFT" | ||||
716 | VALIGN="TOP" | ||||
717 | > </TD | ||||
718 | ></TR | ||||
719 | ></TBODY | ||||
720 | ></TABLE | ||||
721 | ><P | ||||
722 | ></P | ||||
723 | ></DIV | ||||
724 | ></DIV | ||||
725 | ><HR><DIV | ||||
726 | CLASS="REFSECT2" | ||||
727 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 728 | NAME="AEN20068" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 729 | ></A |
730 | ><H3 | ||||
731 | ><A | ||||
732 | NAME="XMLRMUTEXLOCK" | ||||
733 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 734 | >>xmlRMutexLock ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 735 | ><TABLE |
736 | BORDER="0" | ||||
737 | BGCOLOR="#D6E8FF" | ||||
738 | WIDTH="100%" | ||||
739 | CELLPADDING="6" | ||||
740 | ><TR | ||||
741 | ><TD | ||||
742 | ><PRE | ||||
743 | CLASS="PROGRAMLISTING" | ||||
744 | >void xmlRMutexLock (<A | ||||
745 | HREF="libxml-threads.html#XMLRMUTEXPTR" | ||||
746 | >xmlRMutexPtr</A | ||||
747 | > tok);</PRE | ||||
748 | ></TD | ||||
749 | ></TR | ||||
750 | ></TABLE | ||||
751 | ><P | ||||
752 | ><A | ||||
753 | HREF="libxml-threads.html#XMLRMUTEXLOCK" | ||||
754 | >xmlRMutexLock</A | ||||
755 | >() is used to lock a libxml2 token_r.</P | ||||
756 | ><P | ||||
757 | ></P | ||||
758 | ><DIV | ||||
759 | CLASS="INFORMALTABLE" | ||||
760 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 761 | NAME="AEN20076" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 762 | ></A |
763 | ><P | ||||
764 | ></P | ||||
765 | ><TABLE | ||||
766 | BORDER="0" | ||||
767 | WIDTH="100%" | ||||
768 | BGCOLOR="#FFD0D0" | ||||
769 | CELLSPACING="0" | ||||
770 | CELLPADDING="4" | ||||
771 | CLASS="CALSTABLE" | ||||
772 | ><TBODY | ||||
773 | ><TR | ||||
774 | ><TD | ||||
775 | WIDTH="20%" | ||||
776 | ALIGN="RIGHT" | ||||
777 | VALIGN="TOP" | ||||
778 | ><TT | ||||
779 | CLASS="PARAMETER" | ||||
780 | ><I | ||||
781 | >tok</I | ||||
782 | ></TT | ||||
783 | > :</TD | ||||
784 | ><TD | ||||
785 | WIDTH="80%" | ||||
786 | ALIGN="LEFT" | ||||
787 | VALIGN="TOP" | ||||
788 | > the reentrant mutex</TD | ||||
789 | ></TR | ||||
790 | ></TBODY | ||||
791 | ></TABLE | ||||
792 | ><P | ||||
793 | ></P | ||||
794 | ></DIV | ||||
795 | ></DIV | ||||
796 | ><HR><DIV | ||||
797 | CLASS="REFSECT2" | ||||
798 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 799 | NAME="AEN20085" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 800 | ></A |
801 | ><H3 | ||||
802 | ><A | ||||
803 | NAME="XMLRMUTEXUNLOCK" | ||||
804 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 805 | >>xmlRMutexUnlock ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 806 | ><TABLE |
807 | BORDER="0" | ||||
808 | BGCOLOR="#D6E8FF" | ||||
809 | WIDTH="100%" | ||||
810 | CELLPADDING="6" | ||||
811 | ><TR | ||||
812 | ><TD | ||||
813 | ><PRE | ||||
814 | CLASS="PROGRAMLISTING" | ||||
815 | >void xmlRMutexUnlock (<A | ||||
816 | HREF="libxml-threads.html#XMLRMUTEXPTR" | ||||
817 | >xmlRMutexPtr</A | ||||
818 | > tok);</PRE | ||||
819 | ></TD | ||||
820 | ></TR | ||||
821 | ></TABLE | ||||
822 | ><P | ||||
823 | ><A | ||||
824 | HREF="libxml-threads.html#XMLRMUTEXUNLOCK" | ||||
825 | >xmlRMutexUnlock</A | ||||
826 | >() is used to unlock a libxml2 token_r.</P | ||||
827 | ><P | ||||
828 | ></P | ||||
829 | ><DIV | ||||
830 | CLASS="INFORMALTABLE" | ||||
831 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 832 | NAME="AEN20093" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 833 | ></A |
834 | ><P | ||||
835 | ></P | ||||
836 | ><TABLE | ||||
837 | BORDER="0" | ||||
838 | WIDTH="100%" | ||||
839 | BGCOLOR="#FFD0D0" | ||||
840 | CELLSPACING="0" | ||||
841 | CELLPADDING="4" | ||||
842 | CLASS="CALSTABLE" | ||||
843 | ><TBODY | ||||
844 | ><TR | ||||
845 | ><TD | ||||
846 | WIDTH="20%" | ||||
847 | ALIGN="RIGHT" | ||||
848 | VALIGN="TOP" | ||||
849 | ><TT | ||||
850 | CLASS="PARAMETER" | ||||
851 | ><I | ||||
852 | >tok</I | ||||
853 | ></TT | ||||
854 | > :</TD | ||||
855 | ><TD | ||||
856 | WIDTH="80%" | ||||
857 | ALIGN="LEFT" | ||||
858 | VALIGN="TOP" | ||||
859 | > the reentrant mutex</TD | ||||
860 | ></TR | ||||
861 | ></TBODY | ||||
862 | ></TABLE | ||||
863 | ><P | ||||
864 | ></P | ||||
865 | ></DIV | ||||
866 | ></DIV | ||||
867 | ><HR><DIV | ||||
868 | CLASS="REFSECT2" | ||||
869 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 870 | NAME="AEN20102" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 871 | ></A |
872 | ><H3 | ||||
873 | ><A | ||||
874 | NAME="XMLFREERMUTEX" | ||||
875 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 876 | >>xmlFreeRMutex ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 877 | ><TABLE |
878 | BORDER="0" | ||||
879 | BGCOLOR="#D6E8FF" | ||||
880 | WIDTH="100%" | ||||
881 | CELLPADDING="6" | ||||
882 | ><TR | ||||
883 | ><TD | ||||
884 | ><PRE | ||||
885 | CLASS="PROGRAMLISTING" | ||||
886 | >void xmlFreeRMutex (<A | ||||
887 | HREF="libxml-threads.html#XMLRMUTEXPTR" | ||||
888 | >xmlRMutexPtr</A | ||||
889 | > tok);</PRE | ||||
890 | ></TD | ||||
891 | ></TR | ||||
892 | ></TABLE | ||||
893 | ><P | ||||
894 | ></P | ||||
895 | ><DIV | ||||
896 | CLASS="INFORMALTABLE" | ||||
897 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 898 | NAME="AEN20108" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 899 | ></A |
900 | ><P | ||||
901 | ></P | ||||
902 | ><TABLE | ||||
903 | BORDER="0" | ||||
904 | WIDTH="100%" | ||||
905 | BGCOLOR="#FFD0D0" | ||||
906 | CELLSPACING="0" | ||||
907 | CELLPADDING="4" | ||||
908 | CLASS="CALSTABLE" | ||||
909 | ><TBODY | ||||
910 | ><TR | ||||
911 | ><TD | ||||
912 | WIDTH="20%" | ||||
913 | ALIGN="RIGHT" | ||||
914 | VALIGN="TOP" | ||||
915 | ><TT | ||||
916 | CLASS="PARAMETER" | ||||
917 | ><I | ||||
918 | >tok</I | ||||
919 | ></TT | ||||
920 | > :</TD | ||||
921 | ><TD | ||||
922 | WIDTH="80%" | ||||
923 | ALIGN="LEFT" | ||||
924 | VALIGN="TOP" | ||||
925 | > </TD | ||||
926 | ></TR | ||||
927 | ></TBODY | ||||
928 | ></TABLE | ||||
929 | ><P | ||||
930 | ></P | ||||
931 | ></DIV | ||||
932 | ></DIV | ||||
933 | ><HR><DIV | ||||
934 | CLASS="REFSECT2" | ||||
935 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 936 | NAME="AEN20117" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 937 | ></A |
938 | ><H3 | ||||
939 | ><A | ||||
940 | NAME="XMLINITTHREADS" | ||||
941 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 942 | >>xmlInitThreads ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 943 | ><TABLE |
944 | BORDER="0" | ||||
945 | BGCOLOR="#D6E8FF" | ||||
946 | WIDTH="100%" | ||||
947 | CELLPADDING="6" | ||||
948 | ><TR | ||||
949 | ><TD | ||||
950 | ><PRE | ||||
951 | CLASS="PROGRAMLISTING" | ||||
952 | >void xmlInitThreads (void);</PRE | ||||
953 | ></TD | ||||
954 | ></TR | ||||
955 | ></TABLE | ||||
956 | ><P | ||||
957 | ><A | ||||
958 | HREF="libxml-threads.html#XMLINITTHREADS" | ||||
959 | >xmlInitThreads</A | ||||
960 | >() is used to to initialize all the thread related | ||||
961 | data of the libxml2 library.</P | ||||
962 | ><P | ||||
963 | ></P | ||||
964 | ></DIV | ||||
965 | ><HR><DIV | ||||
966 | CLASS="REFSECT2" | ||||
967 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 968 | NAME="AEN20124" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 969 | ></A |
970 | ><H3 | ||||
971 | ><A | ||||
972 | NAME="XMLLOCKLIBRARY" | ||||
973 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 974 | >>xmlLockLibrary ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 975 | ><TABLE |
976 | BORDER="0" | ||||
977 | BGCOLOR="#D6E8FF" | ||||
978 | WIDTH="100%" | ||||
979 | CELLPADDING="6" | ||||
980 | ><TR | ||||
981 | ><TD | ||||
982 | ><PRE | ||||
983 | CLASS="PROGRAMLISTING" | ||||
984 | >void xmlLockLibrary (void);</PRE | ||||
985 | ></TD | ||||
986 | ></TR | ||||
987 | ></TABLE | ||||
988 | ><P | ||||
989 | ><A | ||||
990 | HREF="libxml-threads.html#XMLLOCKLIBRARY" | ||||
991 | >xmlLockLibrary</A | ||||
992 | >() is used to take out a re-entrant lock on the libxml2 | ||||
993 | library.</P | ||||
994 | ><P | ||||
995 | ></P | ||||
996 | ></DIV | ||||
997 | ><HR><DIV | ||||
998 | CLASS="REFSECT2" | ||||
999 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 1000 | NAME="AEN20131" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1001 | ></A |
1002 | ><H3 | ||||
1003 | ><A | ||||
1004 | NAME="XMLUNLOCKLIBRARY" | ||||
1005 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 1006 | >>xmlUnlockLibrary ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1007 | ><TABLE |
1008 | BORDER="0" | ||||
1009 | BGCOLOR="#D6E8FF" | ||||
1010 | WIDTH="100%" | ||||
1011 | CELLPADDING="6" | ||||
1012 | ><TR | ||||
1013 | ><TD | ||||
1014 | ><PRE | ||||
1015 | CLASS="PROGRAMLISTING" | ||||
1016 | >void xmlUnlockLibrary (void);</PRE | ||||
1017 | ></TD | ||||
1018 | ></TR | ||||
1019 | ></TABLE | ||||
1020 | ><P | ||||
1021 | ><A | ||||
1022 | HREF="libxml-threads.html#XMLUNLOCKLIBRARY" | ||||
1023 | >xmlUnlockLibrary</A | ||||
1024 | >() is used to release a re-entrant lock on the libxml2 | ||||
1025 | library.</P | ||||
1026 | ><P | ||||
1027 | ></P | ||||
1028 | ></DIV | ||||
1029 | ><HR><DIV | ||||
1030 | CLASS="REFSECT2" | ||||
1031 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 1032 | NAME="AEN20138" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1033 | ></A |
1034 | ><H3 | ||||
1035 | ><A | ||||
1036 | NAME="XMLGETTHREADID" | ||||
1037 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 1038 | >>xmlGetThreadId ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1039 | ><TABLE |
1040 | BORDER="0" | ||||
1041 | BGCOLOR="#D6E8FF" | ||||
1042 | WIDTH="100%" | ||||
1043 | CELLPADDING="6" | ||||
1044 | ><TR | ||||
1045 | ><TD | ||||
1046 | ><PRE | ||||
1047 | CLASS="PROGRAMLISTING" | ||||
1048 | >int xmlGetThreadId (void);</PRE | ||||
1049 | ></TD | ||||
1050 | ></TR | ||||
1051 | ></TABLE | ||||
1052 | ><P | ||||
1053 | ><A | ||||
1054 | HREF="libxml-threads.html#XMLGETTHREADID" | ||||
1055 | >xmlGetThreadId</A | ||||
1056 | >() find the current thread ID number</P | ||||
1057 | ><P | ||||
1058 | ></P | ||||
1059 | ><DIV | ||||
1060 | CLASS="INFORMALTABLE" | ||||
1061 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 1062 | NAME="AEN20145" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1063 | ></A |
1064 | ><P | ||||
1065 | ></P | ||||
1066 | ><TABLE | ||||
1067 | BORDER="0" | ||||
1068 | WIDTH="100%" | ||||
1069 | BGCOLOR="#FFD0D0" | ||||
1070 | CELLSPACING="0" | ||||
1071 | CELLPADDING="4" | ||||
1072 | CLASS="CALSTABLE" | ||||
1073 | ><TBODY | ||||
1074 | ><TR | ||||
1075 | ><TD | ||||
1076 | WIDTH="20%" | ||||
1077 | ALIGN="RIGHT" | ||||
1078 | VALIGN="TOP" | ||||
1079 | ><I | ||||
1080 | CLASS="EMPHASIS" | ||||
1081 | >Returns</I | ||||
1082 | > :</TD | ||||
1083 | ><TD | ||||
1084 | WIDTH="80%" | ||||
1085 | ALIGN="LEFT" | ||||
1086 | VALIGN="TOP" | ||||
1087 | >the current thread ID number</TD | ||||
1088 | ></TR | ||||
1089 | ></TBODY | ||||
1090 | ></TABLE | ||||
1091 | ><P | ||||
1092 | ></P | ||||
1093 | ></DIV | ||||
1094 | ></DIV | ||||
1095 | ><HR><DIV | ||||
1096 | CLASS="REFSECT2" | ||||
1097 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 1098 | NAME="AEN20154" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1099 | ></A |
1100 | ><H3 | ||||
1101 | ><A | ||||
1102 | NAME="XMLISMAINTHREAD" | ||||
1103 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 1104 | >>xmlIsMainThread ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1105 | ><TABLE |
1106 | BORDER="0" | ||||
1107 | BGCOLOR="#D6E8FF" | ||||
1108 | WIDTH="100%" | ||||
1109 | CELLPADDING="6" | ||||
1110 | ><TR | ||||
1111 | ><TD | ||||
1112 | ><PRE | ||||
1113 | CLASS="PROGRAMLISTING" | ||||
1114 | >int xmlIsMainThread (void);</PRE | ||||
1115 | ></TD | ||||
1116 | ></TR | ||||
1117 | ></TABLE | ||||
1118 | ><P | ||||
1119 | ><A | ||||
1120 | HREF="libxml-threads.html#XMLISMAINTHREAD" | ||||
1121 | >xmlIsMainThread</A | ||||
Daniel Veillard | cbaf399 | 2001-12-31 16:16:02 +0000 | [diff] [blame] | 1122 | >() check whether the current thread is the main thread.</P |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1123 | ><P |
1124 | ></P | ||||
1125 | ><DIV | ||||
1126 | CLASS="INFORMALTABLE" | ||||
1127 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 1128 | NAME="AEN20161" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1129 | ></A |
1130 | ><P | ||||
1131 | ></P | ||||
1132 | ><TABLE | ||||
1133 | BORDER="0" | ||||
1134 | WIDTH="100%" | ||||
1135 | BGCOLOR="#FFD0D0" | ||||
1136 | CELLSPACING="0" | ||||
1137 | CELLPADDING="4" | ||||
1138 | CLASS="CALSTABLE" | ||||
1139 | ><TBODY | ||||
1140 | ><TR | ||||
1141 | ><TD | ||||
1142 | WIDTH="20%" | ||||
1143 | ALIGN="RIGHT" | ||||
1144 | VALIGN="TOP" | ||||
1145 | ><I | ||||
1146 | CLASS="EMPHASIS" | ||||
1147 | >Returns</I | ||||
1148 | > :</TD | ||||
1149 | ><TD | ||||
1150 | WIDTH="80%" | ||||
1151 | ALIGN="LEFT" | ||||
1152 | VALIGN="TOP" | ||||
1153 | >1 if the current thread is the main thread, 0 otherwise</TD | ||||
1154 | ></TR | ||||
1155 | ></TBODY | ||||
1156 | ></TABLE | ||||
1157 | ><P | ||||
1158 | ></P | ||||
1159 | ></DIV | ||||
1160 | ></DIV | ||||
1161 | ><HR><DIV | ||||
1162 | CLASS="REFSECT2" | ||||
1163 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 1164 | NAME="AEN20170" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1165 | ></A |
1166 | ><H3 | ||||
1167 | ><A | ||||
1168 | NAME="XMLCLEANUPTHREADS" | ||||
1169 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 1170 | >>xmlCleanupThreads ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1171 | ><TABLE |
1172 | BORDER="0" | ||||
1173 | BGCOLOR="#D6E8FF" | ||||
1174 | WIDTH="100%" | ||||
1175 | CELLPADDING="6" | ||||
1176 | ><TR | ||||
1177 | ><TD | ||||
1178 | ><PRE | ||||
1179 | CLASS="PROGRAMLISTING" | ||||
1180 | >void xmlCleanupThreads (void);</PRE | ||||
1181 | ></TD | ||||
1182 | ></TR | ||||
1183 | ></TABLE | ||||
1184 | ><P | ||||
1185 | ><A | ||||
1186 | HREF="libxml-threads.html#XMLCLEANUPTHREADS" | ||||
1187 | >xmlCleanupThreads</A | ||||
1188 | >() is used to to cleanup all the thread related | ||||
1189 | data of the libxml2 library once processing has ended.</P | ||||
1190 | ><P | ||||
1191 | ></P | ||||
1192 | ></DIV | ||||
1193 | ><HR><DIV | ||||
1194 | CLASS="REFSECT2" | ||||
1195 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 1196 | NAME="AEN20177" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1197 | ></A |
1198 | ><H3 | ||||
1199 | ><A | ||||
1200 | NAME="XMLGETGLOBALSTATE" | ||||
1201 | ></A | ||||
Daniel Veillard | 06622df | 2002-01-21 17:53:42 +0000 | [diff] [blame] | 1202 | >>xmlGetGlobalState ()</H3 |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1203 | ><TABLE |
1204 | BORDER="0" | ||||
1205 | BGCOLOR="#D6E8FF" | ||||
1206 | WIDTH="100%" | ||||
1207 | CELLPADDING="6" | ||||
1208 | ><TR | ||||
1209 | ><TD | ||||
1210 | ><PRE | ||||
1211 | CLASS="PROGRAMLISTING" | ||||
1212 | ><A | ||||
1213 | HREF="libxml-globals.html#XMLGLOBALSTATEPTR" | ||||
1214 | >xmlGlobalStatePtr</A | ||||
1215 | > xmlGetGlobalState (void);</PRE | ||||
1216 | ></TD | ||||
1217 | ></TR | ||||
1218 | ></TABLE | ||||
1219 | ><P | ||||
1220 | ><A | ||||
1221 | HREF="libxml-threads.html#XMLGETGLOBALSTATE" | ||||
1222 | >xmlGetGlobalState</A | ||||
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 1223 | >() is called to retrieve the global state for a thread.</P |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1224 | ><P |
1225 | ></P | ||||
1226 | ><DIV | ||||
1227 | CLASS="INFORMALTABLE" | ||||
1228 | ><A | ||||
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 1229 | NAME="AEN20185" |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 1230 | ></A |
1231 | ><P | ||||
1232 | ></P | ||||
1233 | ><TABLE | ||||
1234 | BORDER="0" | ||||
1235 | WIDTH="100%" | ||||
1236 | BGCOLOR="#FFD0D0" | ||||
1237 | CELLSPACING="0" | ||||
1238 | CELLPADDING="4" | ||||
1239 | CLASS="CALSTABLE" | ||||
1240 | ><TBODY | ||||
1241 | ><TR | ||||
1242 | ><TD | ||||
1243 | WIDTH="20%" | ||||
1244 | ALIGN="RIGHT" | ||||
1245 | VALIGN="TOP" | ||||
1246 | ><I | ||||
1247 | CLASS="EMPHASIS" | ||||
1248 | >Returns</I | ||||
1249 | > :</TD | ||||
1250 | ><TD | ||||
1251 | WIDTH="80%" | ||||
1252 | ALIGN="LEFT" | ||||
1253 | VALIGN="TOP" | ||||
1254 | >the thread global state or NULL in case of error</TD | ||||
1255 | ></TR | ||||
1256 | ></TBODY | ||||
1257 | ></TABLE | ||||
1258 | ><P | ||||
1259 | ></P | ||||
1260 | ></DIV | ||||
1261 | ></DIV | ||||
1262 | ></DIV | ||||
1263 | ><DIV | ||||
1264 | CLASS="NAVFOOTER" | ||||
1265 | ><BR | ||||
1266 | CLEAR="all"><BR><TABLE | ||||
1267 | WIDTH="100%" | ||||
1268 | BORDER="0" | ||||
1269 | BGCOLOR="#000000" | ||||
1270 | CELLPADDING="1" | ||||
1271 | CELLSPACING="0" | ||||
1272 | ><TR | ||||
1273 | ><TD | ||||
1274 | WIDTH="25%" | ||||
1275 | BGCOLOR="#C00000" | ||||
1276 | ALIGN="left" | ||||
1277 | ><A | ||||
1278 | HREF="libxml-catalog.html" | ||||
1279 | ><FONT | ||||
1280 | COLOR="#FFFFFF" | ||||
1281 | SIZE="3" | ||||
1282 | ><B | ||||
1283 | ><<< Previous Page</B | ||||
1284 | ></FONT | ||||
1285 | ></A | ||||
1286 | ></TD | ||||
1287 | ><TD | ||||
1288 | WIDTH="25%" | ||||
1289 | BGCOLOR="#0000C0" | ||||
1290 | ALIGN="center" | ||||
1291 | ><FONT | ||||
1292 | COLOR="#FFFFFF" | ||||
1293 | SIZE="3" | ||||
1294 | ><B | ||||
1295 | ><A | ||||
1296 | HREF="book1.html" | ||||
1297 | ><FONT | ||||
1298 | COLOR="#FFFFFF" | ||||
1299 | SIZE="3" | ||||
1300 | ><B | ||||
1301 | >Home</B | ||||
1302 | ></FONT | ||||
1303 | ></A | ||||
1304 | ></B | ||||
1305 | ></FONT | ||||
1306 | ></TD | ||||
1307 | ><TD | ||||
1308 | WIDTH="25%" | ||||
1309 | BGCOLOR="#00C000" | ||||
1310 | ALIGN="center" | ||||
1311 | ><FONT | ||||
1312 | COLOR="#FFFFFF" | ||||
1313 | SIZE="3" | ||||
1314 | ><B | ||||
1315 | ><A | ||||
1316 | HREF="libxml-lib.html" | ||||
1317 | ><FONT | ||||
1318 | COLOR="#FFFFFF" | ||||
1319 | SIZE="3" | ||||
1320 | ><B | ||||
1321 | >Up</B | ||||
1322 | ></FONT | ||||
1323 | ></A | ||||
1324 | ></B | ||||
1325 | ></FONT | ||||
1326 | ></TD | ||||
1327 | ><TD | ||||
1328 | WIDTH="25%" | ||||
1329 | BGCOLOR="#C00000" | ||||
1330 | ALIGN="right" | ||||
1331 | ><A | ||||
1332 | HREF="libxml-globals.html" | ||||
1333 | ><FONT | ||||
1334 | COLOR="#FFFFFF" | ||||
1335 | SIZE="3" | ||||
1336 | ><B | ||||
1337 | >Next Page >>></B | ||||
1338 | ></FONT | ||||
1339 | ></A | ||||
1340 | ></TD | ||||
1341 | ></TR | ||||
1342 | ><TR | ||||
1343 | ><TD | ||||
1344 | COLSPAN="2" | ||||
1345 | ALIGN="left" | ||||
1346 | ><FONT | ||||
1347 | COLOR="#FFFFFF" | ||||
1348 | SIZE="3" | ||||
1349 | ><B | ||||
1350 | >catalog</B | ||||
1351 | ></FONT | ||||
1352 | ></TD | ||||
1353 | ><TD | ||||
1354 | COLSPAN="2" | ||||
1355 | ALIGN="right" | ||||
1356 | ><FONT | ||||
1357 | COLOR="#FFFFFF" | ||||
1358 | SIZE="3" | ||||
1359 | ><B | ||||
1360 | >globals</B | ||||
1361 | ></FONT | ||||
1362 | ></TD | ||||
1363 | ></TR | ||||
1364 | ></TABLE | ||||
1365 | ></DIV | ||||
1366 | ></BODY | ||||
1367 | ></HTML | ||||
1368 | > |