Use the strong symbol'd version of pthread_mutex_init so we don't

accidentally call a stub or application provided version of the
same routine.

Submitted by:	dfr
This commit is contained in:
Daniel Eischen 2002-10-31 18:17:58 +00:00
parent 91da7c40b2
commit 0ece26b0ba

View File

@ -266,7 +266,7 @@ init_static(pthread_mutex_t *mutex)
_SPINLOCK(&static_init_lock);
if (*mutex == NULL)
ret = pthread_mutex_init(mutex, NULL);
ret = _pthread_mutex_init(mutex, NULL);
else
ret = 0;
@ -283,7 +283,7 @@ init_static_private(pthread_mutex_t *mutex)
_SPINLOCK(&static_init_lock);
if (*mutex == NULL)
ret = pthread_mutex_init(mutex, &static_mattr);
ret = _pthread_mutex_init(mutex, &static_mattr);
else
ret = 0;