http://swpat.ffii.org/
Action against software patents
http://www.gnome.org/
Gnome2 Logo
http://www.w3.org/Status
W3C Logo
http://www.redhat.com/
Red Hat Logo
http://xmlsoft.org/
Made with Libxml2 Logo
Module threads from libxml2
API Menu
../index.html
Main Menu
../docs.html
Developer Menu
../examples/index.html
Code Examples
index.html
API Menu
libxml-parser.html
Parser API
libxml-tree.html
Tree API
libxml-xmlreader.html
Reader API
../guidelines.html
XML Guidelines
../ChangeLog.html
ChangeLog
API Indexes
../APIchunk0.html
Alphabetic
../APIconstructors.html
Constructors
../APIfunctions.html
Functions/Types
../APIfiles.html
Modules
../APIsymbols.html
Symbols
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/libxml2
Solaris binaries
http://www.explain.com.au/oss/libxml2xslt.html
MacOsX binaries
http://libxmlplusplus.sourceforge.net/
C++ bindings
http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4
PHP 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=libxml2
Bug Tracker
libxml-schemasInternals.html
Prev
libxml-schemasInternals.html
schemasInternals
index.html
Up
index.html
API documentation
../index.html
Home
../index.html
The XML C parser and toolkit of Gnome
libxml-tree.html
tree
libxml-tree.html
Next
set of generic threading related routines should work with pthreads, Windows native or TLS threads
Table of Contents
Structure
#xmlMutex
xmlMutex
struct _xmlMutex
The content of this structure is not made public by the API.
Typedef
libxml-threads.html#xmlMutex
xmlMutex
*
xmlMutexPtr
Structure
#xmlRMutex
xmlRMutex
struct _xmlRMutex
The content of this structure is not made public by the API.
Typedef
libxml-threads.html#xmlRMutex
xmlRMutex
*
xmlRMutexPtr
void
#xmlCleanupThreads
xmlCleanupThreads
(void)
void
#xmlFreeMutex
xmlFreeMutex
(
libxml-threads.html#xmlMutexPtr
xmlMutexPtr
tok)
void
#xmlFreeRMutex
xmlFreeRMutex
(
libxml-threads.html#xmlRMutexPtr
xmlRMutexPtr
tok)
libxml-globals.html#xmlGlobalStatePtr
xmlGlobalStatePtr
#xmlGetGlobalState
xmlGetGlobalState
(void)
int
#xmlGetThreadId
xmlGetThreadId
(void)
void
#xmlInitThreads
xmlInitThreads
(void)
int
#xmlIsMainThread
xmlIsMainThread
(void)
void
#xmlLockLibrary
xmlLockLibrary
(void)
void
#xmlMutexLock
xmlMutexLock
(
libxml-threads.html#xmlMutexPtr
xmlMutexPtr
tok)
void
#xmlMutexUnlock
xmlMutexUnlock
(
libxml-threads.html#xmlMutexPtr
xmlMutexPtr
tok)
libxml-threads.html#xmlMutexPtr
xmlMutexPtr
#xmlNewMutex
xmlNewMutex
(void)
libxml-threads.html#xmlRMutexPtr
xmlRMutexPtr
#xmlNewRMutex
xmlNewRMutex
(void)
void
#xmlRMutexLock
xmlRMutexLock
(
libxml-threads.html#xmlRMutexPtr
xmlRMutexPtr
tok)
void
#xmlRMutexUnlock
xmlRMutexUnlock
(
libxml-threads.html#xmlRMutexPtr
xmlRMutexPtr
tok)
void
#xmlUnlockLibrary
xmlUnlockLibrary
(void)
Description
Structure xmlMutex
Structure xmlMutex
struct _xmlMutex {
The content of this structure is not made public by the API.
}
Structure xmlRMutex
Structure xmlRMutex
struct _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#xmlMutexPtr
xmlMutexPtr
tok)
xmlFreeMutex() is used to reclaim resources associated with a libxml2 token struct.
tok
:
the simple mutex
Function: xmlFreeRMutex
void	xmlFreeRMutex			(
libxml-threads.html#xmlRMutexPtr
xmlRMutexPtr
tok)
xmlRFreeMutex() is used to reclaim resources associated with a reentrant mutex.
tok
:
the reentrant mutex
Function: xmlGetGlobalState
libxml-globals.html#xmlGlobalStatePtr
xmlGlobalStatePtr
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#xmlMutexPtr
xmlMutexPtr
tok)
xmlMutexLock() is used to lock a libxml2 token.
tok
:
the simple mutex
Function: xmlMutexUnlock
void	xmlMutexUnlock			(
libxml-threads.html#xmlMutexPtr
xmlMutexPtr
tok)
xmlMutexUnlock() is used to unlock a libxml2 token.
tok
:
the simple mutex
Function: xmlNewMutex
libxml-threads.html#xmlMutexPtr
xmlMutexPtr
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#xmlRMutexPtr
xmlRMutexPtr
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#xmlRMutexPtr
xmlRMutexPtr
tok)
xmlRMutexLock() is used to lock a libxml2 token_r.
tok
:
the reentrant mutex
Function: xmlRMutexUnlock
void	xmlRMutexUnlock			(
libxml-threads.html#xmlRMutexPtr
xmlRMutexPtr
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.html
Daniel Veillard
