diff options
Diffstat (limited to 'usr/src/lib/libc/port/threads/pthread.c')
| -rw-r--r-- | usr/src/lib/libc/port/threads/pthread.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/src/lib/libc/port/threads/pthread.c b/usr/src/lib/libc/port/threads/pthread.c index a1fb7dcb46..83cc7ec37a 100644 --- a/usr/src/lib/libc/port/threads/pthread.c +++ b/usr/src/lib/libc/port/threads/pthread.c @@ -164,16 +164,15 @@ _pthread_once(pthread_once_t *once_control, void (*init_routine)(void)) return (EINVAL); if (once->once_flag == PTHREAD_ONCE_NOTDONE) { - (void) _private_mutex_lock(&once->mlock); + (void) mutex_lock(&once->mlock); if (once->once_flag == PTHREAD_ONCE_NOTDONE) { - pthread_cleanup_push(_private_mutex_unlock, - &once->mlock); + pthread_cleanup_push(mutex_unlock, &once->mlock); (*init_routine)(); pthread_cleanup_pop(0); _membar_producer(); once->once_flag = PTHREAD_ONCE_DONE; } - (void) _private_mutex_unlock(&once->mlock); + (void) mutex_unlock(&once->mlock); } _membar_consumer(); |
