#At file:///home/malff/BZR-TREE/mysql-6.0-perf/
2746 Marc Alff 2008-11-26
Fixed build break
modified:
include/mysql/mysql_mutex.h
=== modified file 'include/mysql/mysql_mutex.h'
--- a/include/mysql/mysql_mutex.h 2008-11-26 21:01:51 +0000
+++ b/include/mysql/mysql_mutex.h 2008-11-26 22:45:20 +0000
@@ -160,7 +160,11 @@ struct PSI_cond;
@c MYSQL_RWLOCK_RDLOCK is a drop in replacement
for @c pthread_rwlock_rdlock.
*/
-#define MYSQL_RWLOCK_RDLOCK(RW) mysql_rwlock_rdlock(RW,__FILE__,__LINE__)
+#ifdef HAVE_PSI_INTERFACE
+ #define MYSQL_RWLOCK_RDLOCK(RW) mysql_rwlock_rdlock(RW,__FILE__,__LINE__)
+#else
+ #define MYSQL_RWLOCK_RDLOCK(RW) mysql_rwlock_rdlock(RW)
+#endif
/**
\def MYSQL_RWLOCK_WRLOCK(RW)
@@ -168,7 +172,11 @@ struct PSI_cond;
@c MYSQL_RWLOCK_WRLOCK is a drop in replacement
for @c pthread_rwlock_wrlock.
*/
-#define MYSQL_RWLOCK_WRLOCK(RW) mysql_rwlock_wrlock(RW,__FILE__,__LINE__)
+#ifdef HAVE_PSI_INTERFACE
+ #define MYSQL_RWLOCK_WRLOCK(RW) mysql_rwlock_wrlock(RW,__FILE__,__LINE__)
+#else
+ #define MYSQL_RWLOCK_WRLOCK(RW) mysql_rwlock_wrlock(RW)
+#endif
/**
\def MYSQL_RWLOCK_TRYRDLOCK(RW)
@@ -176,7 +184,11 @@ struct PSI_cond;
@c MYSQL_RWLOCK_TRYRDLOCK is a drop in replacement
for @c pthread_rwlock_tryrdlock.
*/
-#define MYSQL_RWLOCK_TRYRDLOCK(RW) mysql_rwlock_tryrdlock(RW,__FILE__,__LINE__)
+#ifdef HAVE_PSI_INTERFACE
+ #define MYSQL_RWLOCK_TRYRDLOCK(RW) mysql_rwlock_tryrdlock(RW,__FILE__,__LINE__)
+#else
+ #define MYSQL_RWLOCK_TRYRDLOCK(RW) mysql_rwlock_tryrdlock(RW)
+#endif
/**
\def MYSQL_RWLOCK_TRYWRLOCK(RW)
@@ -184,7 +196,11 @@ struct PSI_cond;
@c MYSQL_RWLOCK_TRYWRLOCK is a drop in replacement
for @c pthread_rwlock_trywrlock.
*/
-#define MYSQL_RWLOCK_TRYWRLOCK(RW) mysql_rwlock_trywrlock(RW,__FILE__,__LINE__)
+#ifdef HAVE_PSI_INTERFACE
+ #define MYSQL_RWLOCK_TRYWRLOCK(RW) mysql_rwlock_trywrlock(RW,__FILE__,__LINE__)
+#else
+ #define MYSQL_RWLOCK_TRYWRLOCK(RW) mysql_rwlock_trywrlock(RW)
+#endif
/**
\def MYSQL_RWLOCK_UNLOCK(RW)
@@ -223,7 +239,11 @@ struct PSI_cond;
@c MYSQL_COND_WAIT is a drop in replacement
for @c pthread_cond_wait.
*/
-#define MYSQL_COND_WAIT(C,M) mysql_cond_wait(C,M,__FILE__,__LINE__)
+#ifdef HAVE_PSI_INTERFACE
+ #define MYSQL_COND_WAIT(C,M) mysql_cond_wait(C,M,__FILE__,__LINE__)
+#else
+ #define MYSQL_COND_WAIT(C,M) mysql_cond_wait(C,M)
+#endif
/**
\def MYSQL_COND_TIMEDWAIT(C,M,W)
@@ -231,7 +251,11 @@ struct PSI_cond;
@c MYSQL_COND_TIMEDWAIT is a drop in replacement
for @c pthread_cond_timedwait.
*/
-#define MYSQL_COND_TIMEDWAIT(C,M,W) mysql_cond_timedwait(C,M,W,__FILE__,__LINE__)
+#ifdef HAVE_PSI_INTERFACE
+ #define MYSQL_COND_TIMEDWAIT(C,M,W) mysql_cond_timedwait(C,M,W,__FILE__,__LINE__)
+#else
+ #define MYSQL_COND_TIMEDWAIT(C,M,W) mysql_cond_timedwait(C,M,W)
+#endif
/**
\def MYSQL_COND_SIGNAL(C)
| Thread |
|---|
| • bzr commit into mysql-6.0-perf branch (marc.alff:2746) | Marc Alff | 26 Nov |