summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-04-23 05:41:03 (GMT)
committerhobbs <hobbs>2002-04-23 05:41:03 (GMT)
commitc8606fb44370611225383e0f4cbe59c18edbc31b (patch)
tree8e915d33b9e1c08eeb19f3ffde5853fc2fc6a31d /unix/tcl.m4
parent8142c17a36e5e8959ca0577e6ac377269c6eea7e (diff)
downloadtcl-c8606fb44370611225383e0f4cbe59c18edbc31b.zip
tcl-c8606fb44370611225383e0f4cbe59c18edbc31b.tar.gz
tcl-c8606fb44370611225383e0f4cbe59c18edbc31b.tar.bz2
* generic/tclAlloc.c:
* generic/tclInt.h: * generic/tclThreadAlloc.c (new): * unix/Makefile.in: * unix/tclUnixThrd.c: * win/Makefile.in: * win/tclWinInt.h: * win/tclWinThrd.c: added new threaded allocator contributed by AOL that significantly reduces lock contention when multiple threads are in use. Only Windows and Unix implementations are ready, and the Windows one may need work. It is only used by default on Unix for now, and requires that USE_THREAD_ALLOC be defined (--enable-threads on Unix will define this).
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 13234da..3b51c8d 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -365,6 +365,9 @@ AC_DEFUN(SC_ENABLE_THREADS, [
AC_MSG_RESULT(yes)
TCL_THREADS=1
AC_DEFINE(TCL_THREADS)
+ # USE_THREAD_ALLOC tells us to try the special thread-based
+ # allocator that significantly reduces lock contention
+ AC_DEFINE(USE_THREAD_ALLOC)
AC_DEFINE(_REENTRANT)
AC_DEFINE(_THREAD_SAFE)
AC_CHECK_LIB(pthread,pthread_mutex_init,tcl_ok=yes,tcl_ok=no)