diff options
-rw-r--r-- | globals.c | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -562,6 +562,22 @@ xmlInitializeGlobalState(xmlGlobalStatePtr gs) } /** + * xmlCleanupGlobals: + * + * Additional cleanup for multi-threading + */ +void xmlCleanupGlobals(void) +{ + xmlResetError(&xmlLastError); + + if (xmlThrDefMutex != NULL) { + xmlFreeMutex(xmlThrDefMutex); + xmlThrDefMutex = NULL; + } + __xmlGlobalInitMutexDestroy(); +} + +/** * DOC_DISABLE : we ignore missing doc for the xmlThrDef functions, * those are really internal work */ @@ -1106,19 +1122,3 @@ __xmlOutputBufferCreateFilenameValue(void) { return (&xmlGetGlobalState()->xmlOutputBufferCreateFilenameValue); } -/** - * xmlCleanupGlobals: - * - * Additional cleanup for multi-threading - */ -void xmlCleanupGlobals(void) -{ - xmlResetError(&xmlLastError); - - if (xmlThrDefMutex != NULL) { - xmlFreeMutex(xmlThrDefMutex); - xmlThrDefMutex = NULL; - } - __xmlGlobalInitMutexDestroy(); -} - |