diff options
author | unknown <bell@sanja.is.com.ua> | 2002-06-30 12:08:58 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-06-30 12:08:58 +0300 |
commit | 5c059a338fe9f746ebe8bd89451af25d66caa5fc (patch) | |
tree | 5e3f428ea24283f78ecea46b7c6bd8c3d117abfb /include/my_pthread.h | |
parent | a88c8630ec426c88cd7eae7acf2985a254d3faba (diff) | |
download | mariadb-git-5c059a338fe9f746ebe8bd89451af25d66caa5fc.tar.gz |
semaphores replaced by rwlock
include/my_pthread.h:
small bug in #define
sql/sql_handler.cc:
bug in order of #includes
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r-- | include/my_pthread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h index 7e975a8185d..0908f7b8ab9 100644 --- a/include/my_pthread.h +++ b/include/my_pthread.h @@ -494,8 +494,8 @@ int safe_cond_timedwait(pthread_cond_t *cond, safe_mutex_t *mp, #define my_rwlock_init(A,B) pthread_rwlock_init((A),(B)) #define rw_rdlock(A) pthread_rwlock_rdlock(A) #define rw_wrlock(A) pthread_rwlock_wrlock(A) -#define rw_tryrdlock(A) pthread_mutex_tryrdlock((A)) -#define rw_trywrlock(A) pthread_mutex_trywrlock((A)) +#define rw_tryrdlock(A) pthread_rwlock_tryrdlock((A)) +#define rw_trywrlock(A) pthread_rwlock_trywrlock((A)) #define rw_unlock(A) pthread_rwlock_unlock(A) #define rwlock_destroy(A) pthread_rwlock_destroy(A) #elif defined(HAVE_RWLOCK_INIT) |