summaryrefslogtreecommitdiff
path: root/include/thr_alarm.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-12-08 19:17:49 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2011-12-08 19:17:49 +0100
commite91bbca5fb080a8d988c156d78c7dc1b1daaad82 (patch)
treeedeb15da451e956ae0d6874657c910ab0df111f8 /include/thr_alarm.h
parent5e7b949e61f4330e27013c8ec81fa3d450e5dce6 (diff)
downloadmariadb-git-e91bbca5fb080a8d988c156d78c7dc1b1daaad82.tar.gz
Initial threadpool implementation for MariaDB 5.5
Diffstat (limited to 'include/thr_alarm.h')
-rw-r--r--include/thr_alarm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/thr_alarm.h b/include/thr_alarm.h
index f4823b618f7..66e344d10fd 100644
--- a/include/thr_alarm.h
+++ b/include/thr_alarm.h
@@ -40,7 +40,11 @@ typedef struct st_alarm_info
} ALARM_INFO;
void thr_alarm_info(ALARM_INFO *info);
+extern my_bool my_disable_thr_alarm;
+#ifdef _WIN32
+#define DONT_USE_THR_ALARM
+#endif
#if defined(DONT_USE_THR_ALARM)
#define USE_ALARM_THREAD
@@ -88,7 +92,7 @@ typedef struct st_alarm {
extern uint thr_client_alarm;
extern pthread_t alarm_thread;
-extern my_bool my_disable_thr_alarm;
+
#define thr_alarm_init(A) (*(A))=0
#define thr_alarm_in_use(A) (*(A)!= 0)