summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-08-30 19:33:11 (GMT)
committerhobbs <hobbs>2006-08-30 19:33:11 (GMT)
commit6c16eb4ce5bc9b7ee16f08ff62f685d33c350c58 (patch)
treed74ff2e2e4f4bfd866775b4cccbbaa91c9914571
parent31fb5db54ba6f9ae3e3cab1e3d5ff10df28d009a (diff)
downloadtcl-6c16eb4ce5bc9b7ee16f08ff62f685d33c350c58.zip
tcl-6c16eb4ce5bc9b7ee16f08ff62f685d33c350c58.tar.gz
tcl-6c16eb4ce5bc9b7ee16f08ff62f685d33c350c58.tar.bz2
* generic/tclBasic.c (Tcl_CreateInterp): init iPtr->threadId
-rw-r--r--ChangeLog2
-rw-r--r--generic/tclBasic.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c0ef3d4..3bf0e5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2006-08-30 Jeff Hobbs <jeffh@ActiveState.com>
+ * generic/tclBasic.c (Tcl_CreateInterp): init iPtr->threadId
+
* win/tclWinChan.c [Bug 819667] Improve logic for identifying COM
ports.
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 0afd68f..1c3eb2c 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclBasic.c,v 1.195 2006/08/10 12:15:29 dkf Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.196 2006/08/30 19:33:11 hobbs Exp $
*/
#include "tclInt.h"
@@ -343,6 +343,7 @@ Tcl_CreateInterp(void)
iPtr->emptyObjPtr = Tcl_NewObj(); /* another empty object */
Tcl_IncrRefCount(iPtr->emptyObjPtr);
iPtr->resultSpace[0] = 0;
+ iPtr->threadId = Tcl_GetCurrentThread();
iPtr->globalNsPtr = NULL; /* force creation of global ns below */
iPtr->globalNsPtr = (Namespace *) Tcl_CreateNamespace(interp, "",