7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
10 TITLE="Gnome XML Library Reference Manual"
11 HREF="book1.html"><LINK
13 TITLE="Libxml Library Reference"
14 HREF="libxml-lib.html"><LINK
17 HREF="libxml-c14n.html"><LINK
20 HREF="libxml-globals.html"></HEAD
43 >Gnome XML Library Reference Manual</FONT
52 HREF="libxml-c14n.html"
57 ><<< Previous Page</B
90 HREF="libxml-lib.html"
106 HREF="libxml-globals.html"
111 >Next Page >>></B
120 NAME="LIBXML-THREADS">threads</H1
128 >threads -- </DIV
130 CLASS="REFSYNOPSISDIV"
146 HREF="libxml-threads.html#XMLMUTEX"
150 HREF="libxml-threads.html#XMLMUTEXPTR"
154 HREF="libxml-threads.html#XMLRMUTEX"
158 HREF="libxml-threads.html#XMLRMUTEXPTR"
162 HREF="libxml-threads.html#XMLMUTEXPTR"
165 HREF="libxml-threads.html#XMLNEWMUTEX"
169 HREF="libxml-threads.html#XMLMUTEXLOCK"
172 HREF="libxml-threads.html#XMLMUTEXPTR"
176 HREF="libxml-threads.html#XMLMUTEXUNLOCK"
179 HREF="libxml-threads.html#XMLMUTEXPTR"
183 HREF="libxml-threads.html#XMLFREEMUTEX"
186 HREF="libxml-threads.html#XMLMUTEXPTR"
190 HREF="libxml-threads.html#XMLRMUTEXPTR"
193 HREF="libxml-threads.html#XMLNEWRMUTEX"
197 HREF="libxml-threads.html#XMLRMUTEXLOCK"
200 HREF="libxml-threads.html#XMLRMUTEXPTR"
204 HREF="libxml-threads.html#XMLRMUTEXUNLOCK"
207 HREF="libxml-threads.html#XMLRMUTEXPTR"
211 HREF="libxml-threads.html#XMLFREERMUTEX"
214 HREF="libxml-threads.html#XMLRMUTEXPTR"
218 HREF="libxml-threads.html#XMLINITTHREADS"
222 HREF="libxml-threads.html#XMLLOCKLIBRARY"
226 HREF="libxml-threads.html#XMLUNLOCKLIBRARY"
230 HREF="libxml-threads.html#XMLGETTHREADID"
234 HREF="libxml-threads.html#XMLISMAINTHREAD"
238 HREF="libxml-threads.html#XMLCLEANUPTHREADS"
239 >xmlCleanupThreads</A
242 HREF="libxml-globals.html#XMLGLOBALSTATEPTR"
243 >xmlGlobalStatePtr</A
245 HREF="libxml-threads.html#XMLGETGLOBALSTATE"
246 >xmlGetGlobalState</A
287 CLASS="PROGRAMLISTING"
288 >struct xmlMutex;</PRE
313 CLASS="PROGRAMLISTING"
314 >typedef xmlMutex *xmlMutexPtr;</PRE
320 HREF="libxml-threads.html#XMLNEWMUTEX"
322 >() is used to allocate a libxml2 token struct for use in
323 synchronizing access to data.</P
336 >struct xmlRMutex</H3
345 CLASS="PROGRAMLISTING"
346 >struct xmlRMutex;</PRE
371 CLASS="PROGRAMLISTING"
372 >typedef xmlRMutex *xmlRMutexPtr;</PRE
397 CLASS="PROGRAMLISTING"
399 HREF="libxml-threads.html#XMLMUTEXPTR"
401 > xmlNewMutex (void);</PRE
408 CLASS="INFORMALTABLE"
462 CLASS="PROGRAMLISTING"
463 >void xmlMutexLock (<A
464 HREF="libxml-threads.html#XMLMUTEXPTR"
472 HREF="libxml-threads.html#XMLMUTEXLOCK"
474 >() is used to lock a libxml2 token.</P
478 CLASS="INFORMALTABLE"
505 > the simple mutex</TD
520 NAME="XMLMUTEXUNLOCK"
522 >xmlMutexUnlock ()</H3
531 CLASS="PROGRAMLISTING"
532 >void xmlMutexUnlock (<A
533 HREF="libxml-threads.html#XMLMUTEXPTR"
541 HREF="libxml-threads.html#XMLMUTEXUNLOCK"
543 >() is used to unlock a libxml2 token.</P
547 CLASS="INFORMALTABLE"
574 > the simple mutex</TD
600 CLASS="PROGRAMLISTING"
601 >void xmlFreeMutex (<A
602 HREF="libxml-threads.html#XMLMUTEXPTR"
610 HREF="libxml-threads.html#XMLFREEMUTEX"
612 >() is used to reclaim resources associated with a libxml2 token
617 CLASS="INFORMALTABLE"
644 > the simple mutex</TD
670 CLASS="PROGRAMLISTING"
672 HREF="libxml-threads.html#XMLRMUTEXPTR"
674 > xmlNewRMutex (void);</PRE
681 CLASS="INFORMALTABLE"
726 >xmlRMutexLock ()</H3
735 CLASS="PROGRAMLISTING"
736 >void xmlRMutexLock (<A
737 HREF="libxml-threads.html#XMLRMUTEXPTR"
745 HREF="libxml-threads.html#XMLRMUTEXLOCK"
747 >() is used to lock a libxml2 token_r.</P
751 CLASS="INFORMALTABLE"
778 > the reentrant mutex</TD
793 NAME="XMLRMUTEXUNLOCK"
795 >xmlRMutexUnlock ()</H3
804 CLASS="PROGRAMLISTING"
805 >void xmlRMutexUnlock (<A
806 HREF="libxml-threads.html#XMLRMUTEXPTR"
814 HREF="libxml-threads.html#XMLRMUTEXUNLOCK"
816 >() is used to unlock a libxml2 token_r.</P
820 CLASS="INFORMALTABLE"
847 > the reentrant mutex</TD
864 >xmlFreeRMutex ()</H3
873 CLASS="PROGRAMLISTING"
874 >void xmlFreeRMutex (<A
875 HREF="libxml-threads.html#XMLRMUTEXPTR"
884 CLASS="INFORMALTABLE"
926 NAME="XMLINITTHREADS"
928 >xmlInitThreads ()</H3
937 CLASS="PROGRAMLISTING"
938 >void xmlInitThreads (void);</PRE
944 HREF="libxml-threads.html#XMLINITTHREADS"
946 >() is used to to initialize all the thread related
947 data of the libxml2 library.</P
958 NAME="XMLLOCKLIBRARY"
960 >xmlLockLibrary ()</H3
969 CLASS="PROGRAMLISTING"
970 >void xmlLockLibrary (void);</PRE
976 HREF="libxml-threads.html#XMLLOCKLIBRARY"
978 >() is used to take out a re-entrant lock on the libxml2
990 NAME="XMLUNLOCKLIBRARY"
992 >xmlUnlockLibrary ()</H3
1001 CLASS="PROGRAMLISTING"
1002 >void xmlUnlockLibrary (void);</PRE
1008 HREF="libxml-threads.html#XMLUNLOCKLIBRARY"
1009 >xmlUnlockLibrary</A
1010 >() is used to release a re-entrant lock on the libxml2
1022 NAME="XMLGETTHREADID"
1024 >xmlGetThreadId ()</H3
1033 CLASS="PROGRAMLISTING"
1034 >int xmlGetThreadId (void);</PRE
1040 HREF="libxml-threads.html#XMLGETTHREADID"
1042 >() find the current thread ID number</P
1046 CLASS="INFORMALTABLE"
1074 >the current thread ID number</TD
1089 NAME="XMLISMAINTHREAD"
1091 >xmlIsMainThread ()</H3
1100 CLASS="PROGRAMLISTING"
1101 >int xmlIsMainThread (void);</PRE
1107 HREF="libxml-threads.html#XMLISMAINTHREAD"
1109 >() check whether the current thread is the main thread.</P
1113 CLASS="INFORMALTABLE"
1141 >1 if the current thread is the main thread, 0 otherwise</TD
1156 NAME="XMLCLEANUPTHREADS"
1158 >xmlCleanupThreads ()</H3
1167 CLASS="PROGRAMLISTING"
1168 >void xmlCleanupThreads (void);</PRE
1174 HREF="libxml-threads.html#XMLCLEANUPTHREADS"
1175 >xmlCleanupThreads</A
1176 >() is used to to cleanup all the thread related
1177 data of the libxml2 library once processing has ended.</P
1188 NAME="XMLGETGLOBALSTATE"
1190 >xmlGetGlobalState ()</H3
1199 CLASS="PROGRAMLISTING"
1201 HREF="libxml-globals.html#XMLGLOBALSTATEPTR"
1202 >xmlGlobalStatePtr</A
1203 > xmlGetGlobalState (void);</PRE
1209 HREF="libxml-threads.html#XMLGETGLOBALSTATE"
1210 >xmlGetGlobalState</A
1211 >() is called to retrieve the global state for a thread.</P
1215 CLASS="INFORMALTABLE"
1243 >the thread global state or NULL in case of error</TD
1255 CLEAR="all"><BR><TABLE
1267 HREF="libxml-c14n.html"
1272 ><<< Previous Page</B
1305 HREF="libxml-lib.html"
1321 HREF="libxml-globals.html"
1326 >Next Page >>></B