1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-17 18:21:05 +03:00

Fixed multithreading problem

This commit is contained in:
William M. Brack
2003-07-04 17:01:59 +00:00
parent de2a67b430
commit 59002e7bea
3 changed files with 15 additions and 1 deletions

View File

@ -196,6 +196,7 @@ xmlNewRMutex(void)
pthread_mutex_init(&tok->lock, NULL);
tok->held = 0;
tok->waiters = 0;
pthread_cond_init(&tok->cv, NULL);
#elif defined HAVE_WIN32_THREADS
InitializeCriticalSection(&tok->cs);
tok->count = 0;