From 35a201cc8ef0c3f5b2df88d2e528aabee1048348 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 30 Apr 2021 18:47:09 +0200 Subject: Initial/Final commit --- libxml2-2.9.10/doc/devhelp/libxml2-threads.html | 161 ++++++++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100644 libxml2-2.9.10/doc/devhelp/libxml2-threads.html (limited to 'libxml2-2.9.10/doc/devhelp/libxml2-threads.html') diff --git a/libxml2-2.9.10/doc/devhelp/libxml2-threads.html b/libxml2-2.9.10/doc/devhelp/libxml2-threads.html new file mode 100644 index 0000000..0ddd0bc --- /dev/null +++ b/libxml2-2.9.10/doc/devhelp/libxml2-threads.html @@ -0,0 +1,161 @@ + + + + + threads: interfaces for thread handling + + + + + + + + + + + + + + + + +

+ threads +

+

threads - interfaces for thread handling

+

set of generic threading related routines should work with pthreads, Windows native or TLS threads

+

Author(s): Daniel Veillard

+
+

Synopsis

+
typedef struct _xmlMutex xmlMutex;
+typedef struct _xmlRMutex xmlRMutex;
+typedef xmlRMutex * xmlRMutexPtr;
+typedef xmlMutex * xmlMutexPtr;
+void	xmlFreeRMutex			(xmlRMutexPtr tok);
+int	xmlGetThreadId			(void);
+void	xmlMutexUnlock			(xmlMutexPtr tok);
+void	xmlCleanupThreads		(void);
+void	xmlLockLibrary			(void);
+xmlRMutexPtr	xmlNewRMutex		(void);
+void	xmlMutexLock			(xmlMutexPtr tok);
+int	xmlIsMainThread			(void);
+void	xmlRMutexUnlock			(xmlRMutexPtr tok);
+xmlGlobalStatePtr	xmlGetGlobalState	(void);
+xmlMutexPtr	xmlNewMutex		(void);
+int	xmlDllMain			(void * hinstDLL, 
unsigned long fdwReason,
void * lpvReserved); +void xmlFreeMutex (xmlMutexPtr tok); +void xmlUnlockLibrary (void); +void xmlInitThreads (void); +void xmlRMutexLock (xmlRMutexPtr tok); +
+
+
+

Description

+
+
+

Details

+
+

Structure xmlMutex

struct _xmlMutex {
+The content of this structure is not made public by the API.
+} xmlMutex;
+

+

+
+

Typedef xmlMutexPtr

xmlMutex * xmlMutexPtr;
+

+

+
+

Structure xmlRMutex

struct _xmlRMutex {
+The content of this structure is not made public by the API.
+} xmlRMutex;
+

+

+
+

Typedef xmlRMutexPtr

xmlRMutex * xmlRMutexPtr;
+

+

+
+ +
+
+
+

xmlFreeMutex ()

void	xmlFreeMutex			(xmlMutexPtr tok)
+

xmlFreeMutex() is used to reclaim resources associated with a libxml2 token struct.

+
tok:the simple mutex
+
+

xmlFreeRMutex ()

void	xmlFreeRMutex			(xmlRMutexPtr tok)
+

xmlRFreeMutex() is used to reclaim resources associated with a reentrant mutex.

+
tok:the reentrant mutex
+
+

xmlGetGlobalState ()

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
+
+ +
+
+
+
+
+
+
+

xmlMutexLock ()

void	xmlMutexLock			(xmlMutexPtr tok)
+

xmlMutexLock() is used to lock a libxml2 token.

+
tok:the simple mutex
+
+

xmlMutexUnlock ()

void	xmlMutexUnlock			(xmlMutexPtr tok)
+

xmlMutexUnlock() is used to unlock a libxml2 token.

+
tok:the simple mutex
+
+

xmlNewMutex ()

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
+
+

xmlNewRMutex ()

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
+
+

xmlRMutexLock ()

void	xmlRMutexLock			(xmlRMutexPtr tok)
+

xmlRMutexLock() is used to lock a libxml2 token_r.

+
tok:the reentrant mutex
+
+

xmlRMutexUnlock ()

void	xmlRMutexUnlock			(xmlRMutexPtr tok)
+

xmlRMutexUnlock() is used to unlock a libxml2 token_r.

+
tok:the reentrant mutex
+
+ +
+
+
+ + -- cgit v1.2.3