diff options
author | stanton <stanton> | 1998-12-10 21:21:26 (GMT) |
---|---|---|
committer | stanton <stanton> | 1998-12-10 21:21:26 (GMT) |
commit | b506f6289f0b2d01d9891ece0a217f4cd45224d8 (patch) | |
tree | 8ff7d5150e8620ca2d808b8194b8075e00e9e7fc /unix | |
parent | 18da38f7b3f2484255769f506b0fc0cc76508baf (diff) | |
download | tcl-b506f6289f0b2d01d9891ece0a217f4cd45224d8.zip tcl-b506f6289f0b2d01d9891ece0a217f4cd45224d8.tar.gz tcl-b506f6289f0b2d01d9891ece0a217f4cd45224d8.tar.bz2 |
* Fixed lots of files that used TCL_THREAD instead of TCL_THREADS.
* generic/tclEncoding.c (Tcl_FreeEncoding): Moved most of the code
into a static FreeEncoding routine that does not grab the
encodingMutex to avoid deadlocks/races when called from other
routines that already have the mutex.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixNotfy.c | 4 | ||||
-rw-r--r-- | unix/tclUnixSock.c | 4 | ||||
-rw-r--r-- | unix/tclUnixTime.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c index 398af41..9acec65 100644 --- a/unix/tclUnixNotfy.c +++ b/unix/tclUnixNotfy.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixNotfy.c,v 1.1.2.4 1998/12/01 05:01:03 stanton Exp $ + * RCS: @(#) $Id: tclUnixNotfy.c,v 1.1.2.5 1998/12/10 21:21:56 stanton Exp $ */ #include "tclInt.h" @@ -169,7 +169,7 @@ static Tcl_ThreadId notifierThread; * Static routines defined in this file. */ -#ifdef TCL_THREAD +#ifdef TCL_THREADS static void NotifierThreadProc _ANSI_ARGS_((ClientData clientData)); #endif static int FileHandlerEventProc _ANSI_ARGS_((Tcl_Event *evPtr, diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c index 96b2397..6c1ef03 100644 --- a/unix/tclUnixSock.c +++ b/unix/tclUnixSock.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixSock.c,v 1.1.2.3 1998/11/11 04:54:22 stanton Exp $ + * RCS: @(#) $Id: tclUnixSock.c,v 1.1.2.4 1998/12/10 21:21:58 stanton Exp $ */ #include "tcl.h" @@ -41,7 +41,7 @@ static char hostname[TCL_HOSTNAME_LEN + 1]; static int hostnameInited = 0; -#ifdef TCL_THREAD +#ifdef TCL_THREADS static Tcl_Mutex hostMutex; #endif diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c index 479143c..2dd7f75 100644 --- a/unix/tclUnixTime.c +++ b/unix/tclUnixTime.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixTime.c,v 1.1.2.3 1998/11/11 04:54:22 stanton Exp $ + * RCS: @(#) $Id: tclUnixTime.c,v 1.1.2.4 1998/12/10 21:21:58 stanton Exp $ */ #include "tclInt.h" @@ -165,7 +165,7 @@ TclpGetTimeZone (currentTime) #if defined(HAVE_TIMEZONE_VAR) && !defined (TCL_GOT_TIMEZONE) # define TCL_GOT_TIMEZONE static int setTZ = 0; -#ifdef TCL_THREAD +#ifdef TCL_THREADS static Tcl_Mutex tzMutex; #endif int timeZone; |