|
libxml2
|
interfaces for thread handling More...
Typedefs | |
| typedef struct _xmlMutex | xmlMutex |
| Mutual exclusion object. | |
| typedef struct _xmlRMutex | xmlRMutex |
| Reentrant mutual exclusion object. | |
Functions | |
| int | xmlCheckThreadLocalStorage (void) |
| Check whether thread-local storage could be allocated. | |
| xmlMutex * | xmlNewMutex (void) |
| xmlNewMutex is used to allocate a libxml2 token struct for use in synchronizing access to data. | |
| void | xmlMutexLock (xmlMutex *tok) |
| xmlMutexLock is used to lock a libxml2 token. | |
| void | xmlMutexUnlock (xmlMutex *tok) |
| xmlMutexUnlock is used to unlock a libxml2 token. | |
| void | xmlFreeMutex (xmlMutex *tok) |
| Free a mutex. | |
| xmlRMutex * | xmlNewRMutex (void) |
| Used to allocate a reentrant mutex for use in synchronizing access to data. | |
| void | xmlRMutexLock (xmlRMutex *tok) |
| xmlRMutexLock is used to lock a libxml2 token_r. | |
| void | xmlRMutexUnlock (xmlRMutex *tok) |
| xmlRMutexUnlock is used to unlock a libxml2 token_r. | |
| void | xmlFreeRMutex (xmlRMutex *tok) |
| Used to reclaim resources associated with a reentrant mutex. | |
| void | xmlInitThreads (void) |
| void | xmlLockLibrary (void) |
| xmlLockLibrary is used to take out a re-entrant lock on the libxml2 library. | |
| void | xmlUnlockLibrary (void) |
| xmlUnlockLibrary is used to release a re-entrant lock on the libxml2 library. | |
| void | xmlCleanupThreads (void) |
interfaces for thread handling
set of generic threading related routines should work with pthreads, Windows native or TLS threads
| int xmlCheckThreadLocalStorage | ( | void | ) |
Check whether thread-local storage could be allocated.
In cross-platform code running in multithreaded environments, this function should be called once in each thread before calling other library functions to make sure that thread-local storage was allocated properly.
| void xmlCleanupThreads | ( | void | ) |
| void xmlFreeMutex | ( | xmlMutex * | tok | ) |
Free a mutex.
| tok | the simple mutex |
| void xmlFreeRMutex | ( | xmlRMutex * | tok | ) |
Used to reclaim resources associated with a reentrant mutex.
| tok | the reentrant mutex |
| void xmlInitThreads | ( | void | ) |
| void xmlMutexLock | ( | xmlMutex * | tok | ) |
xmlMutexLock is used to lock a libxml2 token.
| tok | the simple mutex |
| void xmlMutexUnlock | ( | xmlMutex * | tok | ) |
xmlMutexUnlock is used to unlock a libxml2 token.
| tok | the simple mutex |
| xmlMutex * xmlNewMutex | ( | void | ) |
xmlNewMutex is used to allocate a libxml2 token struct for use in synchronizing access to data.
| xmlRMutex * xmlNewRMutex | ( | void | ) |
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.
| void xmlRMutexLock | ( | xmlRMutex * | tok | ) |
xmlRMutexLock is used to lock a libxml2 token_r.
| tok | the reentrant mutex |
| void xmlRMutexUnlock | ( | xmlRMutex * | tok | ) |
xmlRMutexUnlock is used to unlock a libxml2 token_r.
| tok | the reentrant mutex |