|
|||||||||||
|
PHP mysqlnd svn commit: r910 - trunk/mysqlnd
From: <ahristov(at)mysql.com>
Date: Wed Aug 15 2007 - 12:31:08 EDT
Modified:
trunk/mysqlnd/mysqlnd_statistics.h
Modified: trunk/mysqlnd/mysqlnd_statistics.h
#ifdef ZTS
+#define MYSQLND_DEC_GLOBAL_STATISTIC(statistic) \
+ { \
+ if (mysqlnd_global_stats) { \
+ tsrm_mutex_lock(mysqlnd_global_stats->LOCK_access); \
+ mysqlnd_global_stats->values[statistic]--; \
+ tsrm_mutex_unlock(mysqlnd_global_stats->LOCK_access); \
+ }\
+ }
+
+#define MYSQLND_INC_GLOBAL_STATISTIC(statistic) \
+ { \
+ if (mysqlnd_global_stats) { \
+ tsrm_mutex_lock(mysqlnd_global_stats->LOCK_access); \
+ mysqlnd_global_stats->values[statistic]++; \
+ tsrm_mutex_unlock(mysqlnd_global_stats->LOCK_access); \
+ }\
+ }
+
+
#define MYSQLND_INC_CONN_STATISTIC(conn_stats, statistic) \ { \
if (mysqlnd_global_stats) { \
#else /* NON-ZTS */
+#define MYSQLND_DEC_GLOBAL_STATISTIC(statistic) \
+ { \
+ if (mysqlnd_global_stats) { \
+ mysqlnd_global_stats->values[statistic]--; \
+ } \
+ }
+
+#define MYSQLND_INC_GLOBAL_STATISTIC(statistic) \
+ { \
+ if (mysqlnd_global_stats) { \
+ mysqlnd_global_stats->values[statistic]++; \
+ } \
+ }
+
#define MYSQLND_INC_CONN_STATISTIC(conn_stats, statistic) \ { \ if (mysqlnd_global_stats) { \ -- MySQL Code Commits Mailing List For list archives: http://lists.mysql.com/commits To unsubscribe: http://lists.mysql.com/commits?unsub=lists@pantek.comReceived on Wed Aug 15 12:46:08 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 08:34:45 EDT |
||||||||||
|
|||||||||||