diff options
author | Kevin B Kenny <kennykb@acm.org> | 2005-05-05 17:52:48 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2005-05-05 17:52:48 (GMT) |
commit | 9c427bf1e80bcbb05860cb838266240040b91f07 (patch) | |
tree | 892b105881dfb7cf5624c5e6c3b3d4aa27f386b7 /win/tclWinThrd.c | |
parent | 6f298e8ae2938056f26d538a211c23ba4b4fce19 (diff) | |
download | tcl-9c427bf1e80bcbb05860cb838266240040b91f07.zip tcl-9c427bf1e80bcbb05860cb838266240040b91f07.tar.gz tcl-9c427bf1e80bcbb05860cb838266240040b91f07.tar.bz2 |
Corrected a compilation error in the --enable-threads configuration
Diffstat (limited to 'win/tclWinThrd.c')
-rw-r--r-- | win/tclWinThrd.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/win/tclWinThrd.c b/win/tclWinThrd.c index e557b84..d1f69ba 100644 --- a/win/tclWinThrd.c +++ b/win/tclWinThrd.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: tclWinThrd.c,v 1.35 2005/04/16 08:03:04 vasiljevic Exp $ + * RCS: @(#) $Id: tclWinThrd.c,v 1.36 2005/05/05 17:53:02 kennykb Exp $ */ #include "tclWinInt.h" @@ -112,6 +112,18 @@ typedef struct WinCondition { struct ThreadSpecificData *lastPtr; } WinCondition; +/* + * Additions by AOL for specialized thread memory allocator. + */ +#ifdef USE_THREAD_ALLOC +static int once; +static DWORD key; + +typedef struct allocMutex { + Tcl_Mutex tlock; + CRITICAL_SECTION wlock; +} allocMutex; +#endif /* *---------------------------------------------------------------------- @@ -1044,13 +1056,6 @@ TclpFinalizeCondition(condPtr) * Additions by AOL for specialized thread memory allocator. */ #ifdef USE_THREAD_ALLOC -static int once; -static DWORD key; - -typedef struct allocMutex { - Tcl_Mutex tlock; - CRITICAL_SECTION wlock; -} allocMutex; Tcl_Mutex * TclpNewAllocMutex(void) |