Reactivate use of thread local storage via __thread flag.

This commit is contained in:
Juan Jose Garcia Ripoll 2008-10-11 20:16:08 +02:00
parent 774c4dd185
commit 162b934fc4
4 changed files with 5 additions and 4 deletions

View file

@ -74,6 +74,9 @@ ECL 8.9.0:
names while keeping the old definitions as macros. Look at external.h for
the list of already deprecated names.
- ECL builds using thread local storage when configured with --with-__thread and
the feature works on that platform.
* Embedding:
- ECL now implements a more transparent interface for setting and querying

1
src/aclocal.m4 vendored
View file

@ -600,7 +600,6 @@ AC_TRY_COMPILE(,[static __thread void *data;],
ac_cv_ecl___thread=yes,
ac_cv_ecl___thread=no))
dnl We deactivate this test because it seems to slow down ECL A LOT!!!
ac_cv_ecl___thread=no
])
dnl ----------------------------------------------------------------------

View file

@ -76,7 +76,7 @@ ecl_process_env(void)
static void
ecl_set_process_env(cl_env_ptr env)
{
#ifdef WITH__THREAD
#ifdef WITH___THREAD
cl_env_p = env;
#else
# ifdef ECL_WINDOWS_THREADS
@ -651,7 +651,7 @@ init_threads(cl_env_ptr env)
process->process.env = env;
env->own_process = process;
#if !defined(WITH__THREADS)
#if !defined(WITH___THREAD)
# if defined(ECL_WINDOWS_THREADS)
cl_env_key = TlsAlloc();
# else

1
src/configure vendored
View file

@ -4545,7 +4545,6 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_ecl___thread" >&5
$as_echo "$ac_cv_ecl___thread" >&6; }
ac_cv_ecl___thread=no