diff options
author | nijtmans <nijtmans> | 2010-01-10 22:58:39 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-01-10 22:58:39 (GMT) |
commit | a81c8243240443b1ffe54faec5e49d7e5dba4ee6 (patch) | |
tree | dbbc67aa5fc759bc2ea978873fb23e5c3a614329 /win/tclWinThrd.c | |
parent | 997d61c0f6049d4bc0dd57aefc84e5f7f12c4ac2 (diff) | |
download | tcl-a81c8243240443b1ffe54faec5e49d7e5dba4ee6.zip tcl-a81c8243240443b1ffe54faec5e49d7e5dba4ee6.tar.gz tcl-a81c8243240443b1ffe54faec5e49d7e5dba4ee6.tar.bz2 |
* win/tclWinDde.c: VC++ 6.0 doesn't have
* win/tclWinReg.c PDWORD_PTR
* win/tclWinThrd.c: Fix various minor gcc warnings.
* win/tclWinTime.c
* win/tclWinConsole.c Put channel type definitions
* win/tclWinChan.c in static const memory
* win/tclWinPipe.c
* win/tclWinSerial.c
* win/tclWinSock.c
* generic/tclIOGT.c
* generic/tclIORChan.c
* generic/tclIORTrans.c
* unix/tclUnixChan.c
* unix/tclUnixPipe.c
* unix/tclUnixSock.c
* unix/configure (regenerated with autoconf 2.59)
* tests/info.test: Make test independant from
tcltest implementation.
Diffstat (limited to 'win/tclWinThrd.c')
-rw-r--r-- | win/tclWinThrd.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/win/tclWinThrd.c b/win/tclWinThrd.c index e4850b0..2d483ae 100644 --- a/win/tclWinThrd.c +++ b/win/tclWinThrd.c @@ -10,7 +10,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.50 2009/01/09 11:21:46 dkf Exp $ + * RCS: @(#) $Id: tclWinThrd.c,v 1.51 2010/01/10 22:58:40 nijtmans Exp $ */ #include "tclWinInt.h" @@ -44,8 +44,10 @@ static CRITICAL_SECTION initLock; #ifdef TCL_THREADS -static CRITICAL_SECTION allocLock; -static Tcl_Mutex allocLockPtr = (Tcl_Mutex) &allocLock; +static struct Tcl_Mutex_ { + CRITICAL_SECTION crit; +} allocLock; +static Tcl_Mutex allocLockPtr = &allocLock; static int allocOnce = 0; #endif /* TCL_THREADS */ @@ -413,7 +415,7 @@ Tcl_GetAllocMutex(void) { #ifdef TCL_THREADS if (!allocOnce) { - InitializeCriticalSection(&allocLock); + InitializeCriticalSection(&allocLock.crit); allocOnce = 1; } return &allocLockPtr; @@ -455,7 +457,7 @@ TclFinalizeLock(void) #ifdef TCL_THREADS if (allocOnce) { - DeleteCriticalSection(&allocLock); + DeleteCriticalSection(&allocLock.crit); allocOnce = 0; } #endif |