Fixed errors in the calls of the macros my_atomic_rwlock_wrlock, my_atomic_rwlock_wrunlock.

This commit is contained in:
Igor Babaev 2012-07-30 10:09:58 -07:00
parent 6eace757e9
commit e13cd5abc1

View file

@ -147,9 +147,9 @@ inline void store_address_if_first(void **dest, void **src, bool is_safe)
else
{
char *null= NULL;
my_atomic_rwlock_wrlock(statistics_lock);
my_atomic_rwlock_wrlock(&statistics_lock);
my_atomic_casptr(dest, (void **) &null, *src)
my_atomic_rwlock_wrunlock(statistics_lock);
my_atomic_rwlock_wrunlock(&statistics_lock);
}
}