![]() | ![]() | ![]() | [Insert name here] Reference Manual | ![]() |
---|
threads —
struct xmlMutex; typedef xmlMutexPtr; struct xmlRMutex; typedef xmlRMutexPtr; xmlMutexPtr xmlNewMutex (void); void xmlMutexLock (xmlMutexPtr tok); void xmlMutexUnlock (xmlMutexPtr tok); void xmlFreeMutex (xmlMutexPtr tok); xmlRMutexPtr xmlNewRMutex (void); void xmlRMutexLock (xmlRMutexPtr tok); void xmlRMutexUnlock (xmlRMutexPtr tok); void xmlFreeRMutex (xmlRMutexPtr tok); void xmlInitThreads (void); void xmlLockLibrary (void); void xmlUnlockLibrary (void); int xmlGetThreadId (void); int xmlIsMainThread (void); void xmlCleanupThreads (void); xmlGlobalStatePtr xmlGetGlobalState (void);
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 |
void xmlMutexLock (xmlMutexPtr tok);
xmlMutexLock() is used to lock a libxml2 token.
tok : | the simple mutex |
void xmlMutexUnlock (xmlMutexPtr tok);
xmlMutexUnlock() is used to unlock a libxml2 token.
tok : | the simple mutex |
void xmlFreeMutex (xmlMutexPtr tok);
xmlFreeMutex() is used to reclaim resources associated with a libxml2 token struct.
tok : | the simple mutex |
xmlRMutexPtr xmlNewRMutex (void);
Returns : | the new reentrant mutex pointer or NULL in case of error |
void xmlRMutexLock (xmlRMutexPtr tok);
xmlRMutexLock() is used to lock a libxml2 token_r.
tok : | the reentrant mutex |
void xmlRMutexUnlock (xmlRMutexPtr tok);
xmlRMutexUnlock() is used to unlock a libxml2 token_r.
tok : | the reentrant mutex |
void xmlFreeRMutex (xmlRMutexPtr tok);
tok : | the reentrant mutex |
void xmlInitThreads (void);
xmlInitThreads() is used to to initialize all the thread related data of the libxml2 library.
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.
int xmlGetThreadId (void);
xmlGetThreadId() find the current thread ID number
Returns : | the current thread ID number |
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 |
void xmlCleanupThreads (void);
xmlCleanupThreads() is used to to cleanup all the thread related data of the libxml2 library once processing has ended.
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 |
<< schemasInternals | parser >> |