diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-03-02 02:14:39 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-03-02 20:34:37 +0100 |
commit | 5dcfbc490094c4c9630c9093974e46527f64e7e7 (patch) | |
tree | 8bb125885058510914606e4f890a848fc200de18 /globals.c | |
parent | 5ec1ef1ca575c22da9b63d2c38aae05e0b297015 (diff) | |
download | libxml2-5dcfbc490094c4c9630c9093974e46527f64e7e7.tar.gz |
Move xmlCleanupGlobals to non-generated section
The bottom of the file was generated by build_glob.py. The generator
script needs some updates, but might still be useful.
Diffstat (limited to 'globals.c')
-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(); -} - |