Eneboo - Documentación para desarrolladores
|
Ir al código fuente de este archivo.
'typedefs' | |
typedef struct _xmlMutex | xmlMutex |
typedef xmlMutex * | xmlMutexPtr |
typedef struct _xmlRMutex | xmlRMutex |
typedef xmlRMutex * | xmlRMutexPtr |
Funciones | |
XMLPUBFUN xmlMutexPtr XMLCALL | xmlNewMutex (void) |
XMLPUBFUN void XMLCALL | xmlMutexLock (xmlMutexPtr tok) |
XMLPUBFUN void XMLCALL | xmlMutexUnlock (xmlMutexPtr tok) |
XMLPUBFUN void XMLCALL | xmlFreeMutex (xmlMutexPtr tok) |
XMLPUBFUN xmlRMutexPtr XMLCALL | xmlNewRMutex (void) |
XMLPUBFUN void XMLCALL | xmlRMutexLock (xmlRMutexPtr tok) |
XMLPUBFUN void XMLCALL | xmlRMutexUnlock (xmlRMutexPtr tok) |
XMLPUBFUN void XMLCALL | xmlFreeRMutex (xmlRMutexPtr tok) |
XMLPUBFUN void XMLCALL | xmlInitThreads (void) |
XMLPUBFUN void XMLCALL | xmlLockLibrary (void) |
XMLPUBFUN void XMLCALL | xmlUnlockLibrary (void) |
XMLPUBFUN int XMLCALL | xmlGetThreadId (void) |
XMLPUBFUN int XMLCALL | xmlIsMainThread (void) |
XMLPUBFUN void XMLCALL | xmlCleanupThreads (void) |
XMLPUBFUN xmlGlobalStatePtr XMLCALL | xmlGetGlobalState (void) |
Summary: interfaces for thread handling Description: set of generic threading related routines should work with pthreads, Windows native or TLS threads
Copy: See Copyright for the status of this software.
Author: Daniel Veillard
typedef xmlMutex* xmlMutexPtr |
typedef struct _xmlRMutex xmlRMutex |
typedef xmlRMutex* xmlRMutexPtr |
XMLPUBFUN void XMLCALL xmlCleanupThreads | ( | void | ) |
xmlCleanupThreads:
xmlCleanupThreads() is used to to cleanup all the thread related data of the libxml2 library once processing has ended.
WARNING: if your application is multithreaded or has plugin support calling this may crash the application if another thread or a plugin is still using libxml2. It's sometimes very hard to guess if libxml2 is in use in the application, some libraries or plugins may use it without notice. In case of doubt abstain from calling this function or do it just before calling exit() to avoid leak reports from valgrind !
XMLPUBFUN void XMLCALL xmlFreeMutex | ( | xmlMutexPtr | tok | ) |
xmlFreeMutex: : the simple mutex
xmlFreeMutex() is used to reclaim resources associated with a libxml2 token struct.
XMLPUBFUN void XMLCALL xmlFreeRMutex | ( | xmlRMutexPtr tok | ATTRIBUTE_UNUSED | ) |
xmlFreeRMutex: : the reentrant mutex
xmlRFreeMutex() is used to reclaim resources associated with a reentrant mutex.
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState | ( | void | ) |
xmlGetGlobalState:
xmlGetGlobalState() is called to retrieve the global state for a thread.
Returns the thread global state or NULL in case of error
XMLPUBFUN int XMLCALL xmlGetThreadId | ( | void | ) |
xmlGetThreadId:
xmlGetThreadId() find the current thread ID number Note that this is likely to be broken on some platforms using pthreads as the specification doesn't mandate pthread_t to be an integer type
Returns the current thread ID number
XMLPUBFUN void XMLCALL xmlInitThreads | ( | void | ) |
xmlInitThreads:
xmlInitThreads() is used to to initialize all the thread related data of the libxml2 library.
XMLPUBFUN int XMLCALL xmlIsMainThread | ( | void | ) |
xmlIsMainThread:
xmlIsMainThread() check whether the current thread is the main thread.
Returns 1 if the current thread is the main thread, 0 otherwise
XMLPUBFUN void XMLCALL xmlLockLibrary | ( | void | ) |
xmlLockLibrary:
xmlLockLibrary() is used to take out a re-entrant lock on the libxml2 library.
XMLPUBFUN void XMLCALL xmlMutexLock | ( | xmlMutexPtr | tok | ) |
xmlMutexLock: : the simple mutex
xmlMutexLock() is used to lock a libxml2 token.
XMLPUBFUN void XMLCALL xmlMutexUnlock | ( | xmlMutexPtr | tok | ) |
xmlMutexUnlock: : the simple mutex
xmlMutexUnlock() is used to unlock a libxml2 token.
XMLPUBFUN xmlMutexPtr XMLCALL xmlNewMutex | ( | void | ) |
xmlNewMutex:
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
XMLPUBFUN xmlRMutexPtr XMLCALL xmlNewRMutex | ( | void | ) |
xmlNewRMutex:
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
XMLPUBFUN void XMLCALL xmlRMutexLock | ( | xmlRMutexPtr | tok | ) |
xmlRMutexLock: : the reentrant mutex
xmlRMutexLock() is used to lock a libxml2 token_r.
XMLPUBFUN void XMLCALL xmlRMutexUnlock | ( | xmlRMutexPtr tok | ATTRIBUTE_UNUSED | ) |
xmlRMutexUnlock: : the reentrant mutex
xmlRMutexUnlock() is used to unlock a libxml2 token_r.
XMLPUBFUN void XMLCALL xmlUnlockLibrary | ( | void | ) |
xmlUnlockLibrary:
xmlUnlockLibrary() is used to release a re-entrant lock on the libxml2 library.