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:
4
parser.c
4
parser.c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user