summaryrefslogtreecommitdiff
path: root/include/my_pthread.h
diff options
context:
space:
mode:
authorserg@serg.mylan <>2005-01-16 13:16:23 +0100
committerserg@serg.mylan <>2005-01-16 13:16:23 +0100
commit1034677f94f26ef8660d0ee41b774ac74084b82f (patch)
tree58ca68b7179b2df96e7b2f14a1da686cc9d2b959 /include/my_pthread.h
parent184cbf6d37b3a57468206f68b493de48f8cfb64a (diff)
downloadmariadb-git-1034677f94f26ef8660d0ee41b774ac74084b82f.tar.gz
XA (not completely polished out yet)
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r--include/my_pthread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index b483b68d5cb..f108bc02801 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -687,8 +687,8 @@ extern pthread_t shutdown_th, main_th, signal_th;
#define thread_safe_add(V,C,L) (pthread_mutex_lock((L)), (V)+=(C), pthread_mutex_unlock((L)))
#define thread_safe_sub(V,C,L) \
(pthread_mutex_lock((L)), (V)-=(C), pthread_mutex_unlock((L)))
-#if defined (__GNUC__) || defined (__cplusplus)
-static inline bool thread_safe_dec_and_test(ulong V, pthread_mutex_t *L)
+#ifdef __cplusplus
+static inline bool thread_safe_dec_and_test(ulong &V, pthread_mutex_t *L)
{
ulong res;
pthread_mutex_lock(L);