http://swpat.ffii.org/Action against software patents http://www.gnome.org/Gnome2 Logo http://www.w3.org/StatusW3C Logo http://www.redhat.com/Red Hat Logo http://xmlsoft.org/Made with Libxml2 Logo 
Module threads from libxml2
API Menu ../index.htmlMain Menu ../docs.htmlDeveloper Menu ../examples/index.htmlCode Examples index.htmlAPI Menu libxml-parser.htmlParser API libxml-tree.htmlTree API libxml-xmlreader.htmlReader API ../guidelines.htmlXML Guidelines ../ChangeLog.htmlChangeLog API Indexes ../APIchunk0.htmlAlphabetic ../APIconstructors.htmlConstructors ../APIfunctions.htmlFunctions/Types ../APIfiles.htmlModules ../APIsymbols.htmlSymbols Related links http://mail.gnome.org/archives/xml/Mail archive http://xmlsoft.org/XSLT/XSLT libxslt http://phd.cs.unibo.it/gdome2/DOM gdome2 http://www.aleksey.com/xmlsec/XML-DSig xmlsec ftp://xmlsoft.org/FTP http://www.zlatkovic.com/projects/libxml/Windows binaries http://www.blastwave.org/packages.php/libxml2Solaris binaries http://www.explain.com.au/oss/libxml2xslt.htmlMacOsX binaries http://libxmlplusplus.sourceforge.net/C++ bindings http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4PHP bindings http://sourceforge.net/projects/libxml2-pas/Pascal bindings http://rubyforge.org/projects/xml-tools/Ruby bindings http://tclxml.sourceforge.net/Tcl bindings http://bugzilla.gnome.org/buglist.cgi?product=libxml2Bug Tracker libxml-schematron.htmlPrev libxml-schematron.htmlschematron index.htmlUp index.htmlAPI documentation ../index.htmlHome ../index.htmlThe XML C parser and toolkit of Gnome libxml-tree.htmltree libxml-tree.htmlNext set of generic threading related routines should work with pthreads, Windows native or TLS threads 
Table of Contents
Structure #xmlMutexxmlMutex struct _xmlMutex
The content of this structure is not made public by the API.
Typedef libxml-threads.html#xmlMutexxmlMutex  * xmlMutexPtr Structure #xmlRMutexxmlRMutex struct _xmlRMutex
The content of this structure is not made public by the API.
Typedef libxml-threads.html#xmlRMutexxmlRMutex  * xmlRMutexPtr void	#xmlCleanupThreadsxmlCleanupThreads 		(void)void	#xmlFreeMutexxmlFreeMutex 			( libxml-threads.html#xmlMutexPtrxmlMutexPtr  tok)void	#xmlFreeRMutexxmlFreeRMutex 			( libxml-threads.html#xmlRMutexPtrxmlRMutexPtr  tok) libxml-globals.html#xmlGlobalStatePtrxmlGlobalStatePtr 	#xmlGetGlobalStatexmlGetGlobalState 	(void)int	#xmlGetThreadIdxmlGetThreadId 			(void)void	#xmlInitThreadsxmlInitThreads 			(void)int	#xmlIsMainThreadxmlIsMainThread 			(void)void	#xmlLockLibraryxmlLockLibrary 			(void)void	#xmlMutexLockxmlMutexLock 			( libxml-threads.html#xmlMutexPtrxmlMutexPtr  tok)void	#xmlMutexUnlockxmlMutexUnlock 			( libxml-threads.html#xmlMutexPtrxmlMutexPtr  tok) libxml-threads.html#xmlMutexPtrxmlMutexPtr 	#xmlNewMutexxmlNewMutex 		(void) libxml-threads.html#xmlRMutexPtrxmlRMutexPtr 	#xmlNewRMutexxmlNewRMutex 		(void)void	#xmlRMutexLockxmlRMutexLock 			( libxml-threads.html#xmlRMutexPtrxmlRMutexPtr  tok)void	#xmlRMutexUnlockxmlRMutexUnlock 			( libxml-threads.html#xmlRMutexPtrxmlRMutexPtr  tok)void	#xmlUnlockLibraryxmlUnlockLibrary 		(void)Description
Structure xmlMutex 
Structure xmlMutexstruct _xmlMutex {
The content of this structure is not made public by the API.
}
Structure xmlRMutex 
Structure xmlRMutexstruct _xmlRMutex {
The content of this structure is not made public by the API.
}
Function: xmlCleanupThreads
void	xmlCleanupThreads		(void)xmlCleanupThreads() is used to to cleanup all the thread related data of the libxml2 library once processing has ended.
Function: xmlFreeMutex
void	xmlFreeMutex			( libxml-threads.html#xmlMutexPtrxmlMutexPtr  tok)xmlFreeMutex() is used to reclaim resources associated with a libxml2 token struct.
tok: the simple mutex Function: xmlFreeRMutex
void	xmlFreeRMutex			( libxml-threads.html#xmlRMutexPtrxmlRMutexPtr  tok)xmlRFreeMutex() is used to reclaim resources associated with a reentrant mutex.
tok: the reentrant mutex Function: xmlGetGlobalState
libxml-globals.html#xmlGlobalStatePtrxmlGlobalStatePtr 	xmlGetGlobalState	(void)xmlGetGlobalState() is called to retrieve the global state for a thread.
Returns: the thread global state or NULL in case of error Function: xmlGetThreadId
int	xmlGetThreadId			(void)xmlGetThreadId() find the current thread ID number
Returns: the current thread ID number Function: xmlInitThreads
void	xmlInitThreads			(void)xmlInitThreads() is used to to initialize all the thread related data of the libxml2 library.
Function: xmlIsMainThread
int	xmlIsMainThread			(void)xmlIsMainThread() check whether the current thread is the main thread.
Returns: 1 if the current thread is the main thread, 0 otherwise Function: xmlLockLibrary
void	xmlLockLibrary			(void)xmlLockLibrary() is used to take out a re-entrant lock on the libxml2 library.
Function: xmlMutexLock
void	xmlMutexLock			( libxml-threads.html#xmlMutexPtrxmlMutexPtr  tok)xmlMutexLock() is used to lock a libxml2 token.
tok: the simple mutex Function: xmlMutexUnlock
void	xmlMutexUnlock			( libxml-threads.html#xmlMutexPtrxmlMutexPtr  tok)xmlMutexUnlock() is used to unlock a libxml2 token.
tok: the simple mutex Function: xmlNewMutex
libxml-threads.html#xmlMutexPtrxmlMutexPtr 	xmlNewMutex		(void)xmlNewMutex() is used to allocate a libxml2 token struct for use in synchronizing access to data.
Returns: a new simple mutex pointer or NULL in case of error Function: xmlNewRMutex
libxml-threads.html#xmlRMutexPtrxmlRMutexPtr 	xmlNewRMutex		(void)xmlRNewMutex() is used to allocate a reentrant mutex for use in synchronizing access to data. token_r is a re-entrant lock and thus useful for synchronizing access to data structures that may be manipulated in a recursive fashion.
Returns: the new reentrant mutex pointer or NULL in case of error Function: xmlRMutexLock
void	xmlRMutexLock			( libxml-threads.html#xmlRMutexPtrxmlRMutexPtr  tok)xmlRMutexLock() is used to lock a libxml2 token_r.
tok: the reentrant mutex Function: xmlRMutexUnlock
void	xmlRMutexUnlock			( libxml-threads.html#xmlRMutexPtrxmlRMutexPtr  tok)xmlRMutexUnlock() is used to unlock a libxml2 token_r.
tok: the reentrant mutex Function: xmlUnlockLibrary
void	xmlUnlockLibrary		(void)xmlUnlockLibrary() is used to release a re-entrant lock on the libxml2 library.
../bugs.htmlDaniel Veillard 
