summaryrefslogtreecommitdiff
path: root/legacy/eina/m4/efl_threads.m4
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2010-10-13 15:35:56 +0000
committerCedric BAIL <cedric.bail@free.fr>2010-10-13 15:35:56 +0000
commitf9b8578ea609dea5a777699f013f77ecc84675a1 (patch)
tree0093e6ba7de9af257f0d8927963f55a522e769aa /legacy/eina/m4/efl_threads.m4
parent625d84003e14712ef3027fa1ae5f2d52337d520d (diff)
* eina: add assert to ease tracking down efl misuse with threads.
SVN revision: 53360
Diffstat (limited to '')
-rw-r--r--legacy/eina/m4/efl_threads.m412
1 files changed, 11 insertions, 1 deletions
diff --git a/legacy/eina/m4/efl_threads.m4 b/legacy/eina/m4/efl_threads.m4
index 2228f99..86394bb 100644
--- a/legacy/eina/m4/efl_threads.m4
+++ b/legacy/eina/m4/efl_threads.m4
@@ -134,11 +134,21 @@ fi
134AC_SUBST(EFL_PTHREAD_CFLAGS) 134AC_SUBST(EFL_PTHREAD_CFLAGS)
135AC_SUBST(EFL_PTHREAD_LIBS) 135AC_SUBST(EFL_PTHREAD_LIBS)
136 136
137_efl_enable_debug_threads="no"
138AC_ARG_ENABLE([debug-threads],
139 [AC_HELP_STRING([--enable-debug-threads], [disable assert when you forgot to call eina_threads_init])],
140 [_efl_enable_debug_threads="${enableval}"])
141
142have_debug_threads="no"
143if test "x${_efl_have_posix_threads}" = "xyes" -a "x${_efl_enable_debug_threads}" = "xyes"; then
144 have_debug_threads="yes"
145 AC_DEFINE([EFL_DEBUG_THREADS], [1], [Assert when forgot to call eina_threads_init])
146fi
147
137if test "x${_efl_have_posix_threads}" = "xyes" ; then 148if test "x${_efl_have_posix_threads}" = "xyes" ; then
138 AC_DEFINE([EFL_HAVE_POSIX_THREADS], [1], [Define to mention that POSIX threads are supported]) 149 AC_DEFINE([EFL_HAVE_POSIX_THREADS], [1], [Define to mention that POSIX threads are supported])
139fi 150fi
140 151
141
142if test "x${_efl_enable_win32_threads}" = "xyes" ; then 152if test "x${_efl_enable_win32_threads}" = "xyes" ; then
143 _efl_have_win32_threads="yes" 153 _efl_have_win32_threads="yes"
144 AC_DEFINE([EFL_HAVE_WIN32_THREADS], [1], [Define to mention that Win32 threads are supported]) 154 AC_DEFINE([EFL_HAVE_WIN32_THREADS], [1], [Define to mention that Win32 threads are supported])