From add70fc1ba71015c75e97da9380cb2385cd112fe Mon Sep 17 00:00:00 2001 From: "monty@donna.mysql.fi" <> Date: Mon, 26 Mar 2001 01:05:04 +0300 Subject: Changed pthread_mutex_init() to use new MY_MUTEX_INIT.. macro (For glibc 2.2) --- mysys/thr_rwlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mysys/thr_rwlock.c') diff --git a/mysys/thr_rwlock.c b/mysys/thr_rwlock.c index 37630956e7f..866948a1c23 100644 --- a/mysys/thr_rwlock.c +++ b/mysys/thr_rwlock.c @@ -63,7 +63,7 @@ int my_rwlock_init( rw_lock_t *rwp, void *arg __attribute__((unused))) { pthread_condattr_t cond_attr; - pthread_mutex_init( &rwp->lock, NULL ); + pthread_mutex_init( &rwp->lock, MY_MUTEX_INIT_FAST); pthread_condattr_init( &cond_attr ); pthread_cond_init( &rwp->readers, &cond_attr ); pthread_cond_init( &rwp->writers, &cond_attr ); -- cgit v1.2.1