|
ReactOS 0.4.16-dev-2132-g3885311
|
#include <libxml/xmlversion.h>

Go to the source code of this file.
Typedefs | |
| typedef struct _xmlMutex | xmlMutex |
| typedef xmlMutex * | xmlMutexPtr |
| typedef struct _xmlRMutex | xmlRMutex |
| typedef xmlRMutex * | xmlRMutexPtr |
| typedef xmlMutex* xmlMutexPtr |
| typedef struct _xmlRMutex xmlRMutex |
| typedef xmlRMutex* xmlRMutexPtr |
xmlCheckThreadLocalStorage:
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.
Returns 0 on success or -1 if a memory allocation failed. A failed allocation signals a typically fatal and irrecoverable out-of-memory situation. Don't call any library functions in this case.
This function never fails if the library is compiled with support for thread-local storage.
This function never fails for the "main" thread which is the first thread calling xmlInitParser.
Available since v2.12.0.
Definition at line 945 of file globals.c.
| XML_DEPRECATED XMLPUBFUN void xmlCleanupThreads | ( | void | ) |
xmlCleanupThreads:
DEPRECATED: This function is a no-op. Call xmlCleanupParser to free global state but see the warnings there. xmlCleanupParser should be only called once at program exit. In most cases, you don't have call cleanup functions at all.
Definition at line 435 of file threads.c.
| XMLPUBFUN void xmlFreeMutex | ( | xmlMutexPtr | tok | ) |
xmlFreeMutex: @tok: the simple mutex
Free a mutex.
Definition at line 185 of file threads.c.
Referenced by xsltCleanupGlobals().
| XMLPUBFUN void xmlFreeRMutex | ( | xmlRMutexPtr tok | ATTRIBUTE_UNUSED | ) |
xmlFreeRMutex: @tok: the reentrant mutex
xmlRFreeMutex() is used to reclaim resources associated with a reentrant mutex.
Definition at line 275 of file threads.c.
Referenced by xsltUninit().
| XML_DEPRECATED XMLPUBFUN int xmlGetThreadId | ( | void | ) |
xmlGetThreadId:
DEPRECATED: Internal function, do not use.
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
Definition at line 372 of file threads.c.
| XML_DEPRECATED XMLPUBFUN void xmlInitThreads | ( | void | ) |
xmlInitThreads:
DEPRECATED: Alias for xmlInitParser.
| XML_DEPRECATED XMLPUBFUN int xmlIsMainThread | ( | void | ) |
xmlIsMainThread:
DEPRECATED: Internal function, do not use.
Check whether the current thread is the main thread.
Returns 1 if the current thread is the main thread, 0 otherwise
xmlLockLibrary:
xmlLockLibrary() is used to take out a re-entrant lock on the libxml2 library.
Definition at line 398 of file threads.c.
| XMLPUBFUN void xmlMutexLock | ( | xmlMutexPtr | tok | ) |
xmlMutexLock: @tok: the simple mutex
xmlMutexLock() is used to lock a libxml2 token.
Definition at line 201 of file threads.c.
Referenced by xmlDictFree(), xmlDictReference(), xmlMallocAtomicLoc(), xmlMallocLoc(), xmlMemBlocks(), xmlMemDisplay(), xmlMemDisplayLast(), xmlMemFree(), xmlMemShow(), xmlMemStrdupLoc(), xmlRandom(), xmlReallocLoc(), xmlThrDefBufferAllocScheme(), xmlThrDefDefaultBufferSize(), xmlThrDefDeregisterNodeDefault(), xmlThrDefDoValidityCheckingDefaultValue(), xmlThrDefGetWarningsDefaultValue(), xmlThrDefKeepBlanksDefaultValue(), xmlThrDefLineNumbersDefaultValue(), xmlThrDefLoadExtDtdDefaultValue(), xmlThrDefOutputBufferCreateFilenameDefault(), xmlThrDefParserDebugEntities(), xmlThrDefParserInputBufferCreateFilenameDefault(), xmlThrDefPedanticParserDefaultValue(), xmlThrDefRegisterNodeDefault(), xmlThrDefSetGenericErrorFunc(), xmlThrDefSetStructuredErrorFunc(), xmlThrDefSubstituteEntitiesDefaultValue(), xsltCleanupGlobals(), xsltDebugDumpExtensions(), xsltExtModuleElementLookup(), xsltExtModuleElementPreComputeLookup(), xsltExtModuleFunctionLookup(), xsltExtModuleTopLevelLookup(), xsltGetExtData(), xsltPreComputeExtModuleElement(), xsltRegisterExtModuleElement(), xsltRegisterExtModuleFull(), xsltRegisterExtModuleFunction(), xsltRegisterExtModuleTopLevel(), xsltRegisterExtPrefix(), xsltStyleInitializeStylesheetModule(), xsltUnregisterAllExtModuleElement(), xsltUnregisterAllExtModuleFunction(), xsltUnregisterAllExtModules(), xsltUnregisterAllExtModuleTopLevel(), xsltUnregisterExtModule(), xsltUnregisterExtModuleElement(), xsltUnregisterExtModuleFunction(), and xsltUnregisterExtModuleTopLevel().
| XMLPUBFUN void xmlMutexUnlock | ( | xmlMutexPtr | tok | ) |
xmlMutexUnlock: @tok: the simple mutex
xmlMutexUnlock() is used to unlock a libxml2 token.
Definition at line 225 of file threads.c.
Referenced by xmlDictFree(), xmlDictReference(), xmlMallocAtomicLoc(), xmlMallocLoc(), xmlMemBlocks(), xmlMemDisplay(), xmlMemDisplayLast(), xmlMemFree(), xmlMemShow(), xmlMemStrdupLoc(), xmlRandom(), xmlReallocLoc(), xmlThrDefBufferAllocScheme(), xmlThrDefDefaultBufferSize(), xmlThrDefDeregisterNodeDefault(), xmlThrDefDoValidityCheckingDefaultValue(), xmlThrDefGetWarningsDefaultValue(), xmlThrDefKeepBlanksDefaultValue(), xmlThrDefLineNumbersDefaultValue(), xmlThrDefLoadExtDtdDefaultValue(), xmlThrDefOutputBufferCreateFilenameDefault(), xmlThrDefParserDebugEntities(), xmlThrDefParserInputBufferCreateFilenameDefault(), xmlThrDefPedanticParserDefaultValue(), xmlThrDefRegisterNodeDefault(), xmlThrDefSetGenericErrorFunc(), xmlThrDefSetStructuredErrorFunc(), xmlThrDefSubstituteEntitiesDefaultValue(), xsltCleanupGlobals(), xsltDebugDumpExtensions(), xsltExtModuleElementLookup(), xsltExtModuleElementPreComputeLookup(), xsltExtModuleFunctionLookup(), xsltExtModuleTopLevelLookup(), xsltGetExtData(), xsltPreComputeExtModuleElement(), xsltRegisterExtModuleElement(), xsltRegisterExtModuleFull(), xsltRegisterExtModuleFunction(), xsltRegisterExtModuleTopLevel(), xsltRegisterExtPrefix(), xsltStyleInitializeStylesheetModule(), xsltUnregisterAllExtModuleElement(), xsltUnregisterAllExtModuleFunction(), xsltUnregisterAllExtModules(), xsltUnregisterAllExtModuleTopLevel(), xsltUnregisterExtModule(), xsltUnregisterExtModuleElement(), xsltUnregisterExtModuleFunction(), and xsltUnregisterExtModuleTopLevel().
| XMLPUBFUN xmlMutexPtr 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
Definition at line 149 of file threads.c.
Referenced by xsltInitGlobals().
| XMLPUBFUN xmlRMutexPtr 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
Definition at line 248 of file threads.c.
Referenced by xsltInit().
| XMLPUBFUN void xmlRMutexLock | ( | xmlRMutexPtr | tok | ) |
xmlRMutexLock: @tok: the reentrant mutex
xmlRMutexLock() is used to lock a libxml2 token_r.
Definition at line 297 of file threads.c.
Referenced by xmlLockLibrary(), and xsltFreeLocales().
| XMLPUBFUN void xmlRMutexUnlock | ( | xmlRMutexPtr tok | ATTRIBUTE_UNUSED | ) |
xmlRMutexUnlock: @tok: the reentrant mutex
xmlRMutexUnlock() is used to unlock a libxml2 token_r.
Definition at line 333 of file threads.c.
Referenced by xmlUnlockLibrary(), and xsltFreeLocales().
xmlUnlockLibrary:
xmlUnlockLibrary() is used to release a re-entrant lock on the libxml2 library.
Definition at line 410 of file threads.c.