1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-28 23:14:57 +03:00

threads: Rework initialization

Make init/cleanup functions private. Merge xmlOnceInit into
xmlInitThreadsInternal.
This commit is contained in:
Nick Wellnhofer
2022-11-25 12:06:27 +01:00
parent 9dbf137455
commit 7010d8779b
3 changed files with 41 additions and 90 deletions

View File

@@ -14495,7 +14495,7 @@ xmlInitParser(void) {
__xmlGlobalInitMutexLock();
if (xmlParserInitialized == 0) {
#endif
xmlInitThreads();
xmlInitThreadsInternal();
xmlInitGlobalsInternal();
xmlInitMemoryInternal();
xmlInitializeDict();
@@ -14555,7 +14555,7 @@ xmlCleanupParser(void) {
xmlRelaxNGCleanupTypes();
#endif
xmlCleanupGlobalsInternal();
xmlCleanupThreads(); /* must be last if called not from the main thread */
xmlCleanupThreadsInternal();
xmlCleanupMemoryInternal();
xmlParserInitialized = 0;
}