summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--globals.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/globals.c b/globals.c
index 4aec8123..cfbb4b9d 100644
--- a/globals.c
+++ b/globals.c
@@ -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();
-}
-