Lines 439-445
__xmlGlobalInitMutexLock(void)
Link Here
|
439 |
/* Make sure the global init lock is initialized and then lock it. */ |
439 |
/* Make sure the global init lock is initialized and then lock it. */ |
440 |
#ifdef HAVE_PTHREAD_H |
440 |
#ifdef HAVE_PTHREAD_H |
441 |
/* The mutex is statically initialized, so we just lock it. */ |
441 |
/* The mutex is statically initialized, so we just lock it. */ |
442 |
pthread_mutex_lock(&global_init_lock); |
442 |
if (pthread_mutex_lock) |
|
|
443 |
pthread_mutex_lock(&global_init_lock); |
443 |
#elif defined HAVE_WIN32_THREADS |
444 |
#elif defined HAVE_WIN32_THREADS |
444 |
LPCRITICAL_SECTION cs; |
445 |
LPCRITICAL_SECTION cs; |
445 |
|
446 |
|
Lines 508-514
void
Link Here
|
508 |
__xmlGlobalInitMutexUnlock(void) |
509 |
__xmlGlobalInitMutexUnlock(void) |
509 |
{ |
510 |
{ |
510 |
#ifdef HAVE_PTHREAD_H |
511 |
#ifdef HAVE_PTHREAD_H |
511 |
pthread_mutex_unlock(&global_init_lock); |
512 |
if (pthread_mutex_unlock) |
|
|
513 |
pthread_mutex_unlock(&global_init_lock); |
512 |
#elif defined HAVE_WIN32_THREADS |
514 |
#elif defined HAVE_WIN32_THREADS |
513 |
if (global_init_lock != NULL) { |
515 |
if (global_init_lock != NULL) { |
514 |
LeaveCriticalSection(global_init_lock); |
516 |
LeaveCriticalSection(global_init_lock); |
515 |
- |
|
|