summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorJoe Mistachkin <joe@mistachkin.com>2004-06-24 01:29:02 (GMT)
committerJoe Mistachkin <joe@mistachkin.com>2004-06-24 01:29:02 (GMT)
commit29cd385014b7d98f9e1209da72adade7679e3cf2 (patch)
tree0b6812d3b041207d523101080164445b27a293f1 /win
parentbef0b360b4ebda09db57f196d096f72baf469670 (diff)
downloadtcl-29cd385014b7d98f9e1209da72adade7679e3cf2.zip
tcl-29cd385014b7d98f9e1209da72adade7679e3cf2.tar.gz
tcl-29cd385014b7d98f9e1209da72adade7679e3cf2.tar.bz2
Version 5 of [Patch 976496]
Diffstat (limited to 'win')
-rw-r--r--win/Makefile.in3
-rwxr-xr-xwin/configure6
-rw-r--r--win/makefile.vc4
-rw-r--r--win/rules.vc11
-rw-r--r--win/tcl.m43
5 files changed, 24 insertions, 3 deletions
diff --git a/win/Makefile.in b/win/Makefile.in
index c1bafe6..8b787f7 100644
--- a/win/Makefile.in
+++ b/win/Makefile.in
@@ -5,7 +5,7 @@
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
-# RCS: @(#) $Id: Makefile.in,v 1.77 2004/06/14 22:14:12 kennykb Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.78 2004/06/24 01:29:08 mistachkin Exp $
VERSION = @TCL_VERSION@
@@ -265,6 +265,7 @@ GENERIC_OBJS = \
tclThread.$(OBJEXT) \
tclThreadAlloc.$(OBJEXT) \
tclThreadJoin.$(OBJEXT) \
+ tclThreadStorage.$(OBJEXT) \
tclTimer.$(OBJEXT) \
tclTrace.$(OBJEXT) \
tclUtf.$(OBJEXT) \
diff --git a/win/configure b/win/configure
index b675b38..3537756 100755
--- a/win/configure
+++ b/win/configure
@@ -2967,6 +2967,12 @@ _ACEOF
#define USE_THREAD_ALLOC 1
_ACEOF
+ # USE_THREAD_STORAGE tells us to use the new generic thread
+ # storage subsystem.
+ cat >>confdefs.h <<\_ACEOF
+#define USE_THREAD_STORAGE 1
+_ACEOF
+
else
TCL_THREADS=0
echo "$as_me:$LINENO: result: no (default)" >&5
diff --git a/win/makefile.vc b/win/makefile.vc
index 611702d..ec11e56 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -12,7 +12,7 @@
# Copyright (c) 2001-2004 David Gravereaux.
#
#------------------------------------------------------------------------------
-# RCS: @(#) $Id: makefile.vc,v 1.128 2004/06/23 19:23:49 patthoyts Exp $
+# RCS: @(#) $Id: makefile.vc,v 1.129 2004/06/24 01:29:07 mistachkin Exp $
#------------------------------------------------------------------------------
!if !defined(MSDEVDIR) && !defined(MSVCDIR)
@@ -80,6 +80,7 @@ the environment. Jump to this line to read the new instructions.
# inside it.
# threads = Turns on full multithreading support.
# thrdalloc = Use the thread allocator (shared global free pool).
+# thrdstorage = Use the generic thread storage support.
# symbols = Adds symbols for step debugging.
# profile = Adds profiling hooks. Map file is assumed.
# loimpact = Adds a flag for how NT treats the heap to keep memory
@@ -308,6 +309,7 @@ TCLOBJS = \
$(TMP_DIR)\tclThread.obj \
$(TMP_DIR)\tclThreadAlloc.obj \
$(TMP_DIR)\tclThreadJoin.obj \
+ $(TMP_DIR)\tclThreadStorage.obj \
$(TMP_DIR)\tclTimer.obj \
$(TMP_DIR)\tclTrace.obj \
$(TMP_DIR)\tclUtf.obj \
diff --git a/win/rules.vc b/win/rules.vc
index 0a102c9..411a192 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -10,7 +10,7 @@
# Copyright (c) 2001-2003 David Gravereaux.
#
#------------------------------------------------------------------------------
-# RCS: @(#) $Id: rules.vc,v 1.18 2004/02/07 21:47:19 davygrvy Exp $
+# RCS: @(#) $Id: rules.vc,v 1.19 2004/06/24 01:29:07 mistachkin Exp $
#------------------------------------------------------------------------------
!ifndef _RULES_VC
@@ -179,6 +179,12 @@ USE_THREAD_ALLOC = 1
!else
USE_THREAD_ALLOC = 0
!endif
+!if [nmakehlp -f $(OPTS) "thrdstorage"]
+!message *** Doing thrdstorage
+USE_THREAD_STORAGE = 1
+!else
+USE_THREAD_STORAGE = 0
+!endif
!if [nmakehlp -f $(OPTS) "unchecked"]
!message *** Doing unchecked
UNCHECKED = 1
@@ -323,6 +329,9 @@ OPTDEFINES = $(OPTDEFINES) -DTCL_THREADS=1
!if $(USE_THREAD_ALLOC)
OPTDEFINES = $(OPTDEFINES) -DUSE_THREAD_ALLOC=1
!endif
+!if $(USE_THREAD_STORAGE)
+OPTDEFINES = $(OPTDEFINES) -DUSE_THREAD_STORAGE=1
+!endif
!endif
!if $(STATIC_BUILD)
OPTDEFINES = $(OPTDEFINES) -DSTATIC_BUILD
diff --git a/win/tcl.m4 b/win/tcl.m4
index f263325..4a73af7 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -257,6 +257,9 @@ AC_DEFUN(SC_ENABLE_THREADS, [
# USE_THREAD_ALLOC tells us to try the special thread-based
# allocator that significantly reduces lock contention
AC_DEFINE(USE_THREAD_ALLOC)
+ # USE_THREAD_STORAGE tells us to use the new generic thread
+ # storage subsystem.
+ AC_DEFINE(USE_THREAD_STORAGE)
else
TCL_THREADS=0
AC_MSG_RESULT([no (default)])