summaryrefslogtreecommitdiff
path: root/sql/scheduler.h
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2014-07-22 10:49:28 +0500
committerAlexey Botchkov <holyfoot@askmonty.org>2014-07-22 10:49:28 +0500
commit4ad2abc55b0d9ae7f41ee02299f2fbce00da256f (patch)
tree04d52e5023c3ac7ce4f86b87c97c172b33975833 /sql/scheduler.h
parent0bb0230e3a08d6901774e263c00bdd4448defe80 (diff)
downloadmariadb-git-4ad2abc55b0d9ae7f41ee02299f2fbce00da256f.tar.gz
MDEV-5756 CMake option to build without thread pool.
Check if the threadpool is available on the system and set HAVE_POOL_OF_THREADS respectively.
Diffstat (limited to 'sql/scheduler.h')
-rw-r--r--sql/scheduler.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/scheduler.h b/sql/scheduler.h
index 06c17c7b114..f7aff377eac 100644
--- a/sql/scheduler.h
+++ b/sql/scheduler.h
@@ -99,15 +99,13 @@ public:
void *data; /* scheduler-specific data structure */
};
-#undef HAVE_POOL_OF_THREADS
-#if !defined(EMBEDDED_LIBRARY) && !defined(_AIX)
-#define HAVE_POOL_OF_THREADS 1
+#ifdef HAVE_POOL_OF_THREADS
void pool_of_threads_scheduler(scheduler_functions* func,
ulong *arg_max_connections,
uint *arg_connection_count);
#else
#define pool_of_threads_scheduler(A,B,C) \
one_thread_per_connection_scheduler(A, B, C)
-#endif
+#endif /*HAVE_POOL_OF_THREADS*/
#endif /* SCHEDULER_INCLUDED */