summaryrefslogtreecommitdiffstats
path: root/win/tclWinThrd.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2018-05-24 13:04:05 (GMT)
committerdgp <dgp@users.sourceforge.net>2018-05-24 13:04:05 (GMT)
commit61169e4e9e47dcc0b65f18c4c133fc31048a32a3 (patch)
tree78e3d480d23fde2f020e978d95a594f200dc8ce0 /win/tclWinThrd.c
parent5eafb95b32b1132d639b964d75e65c95e288b265 (diff)
parentedb38932e8f071b1326515067d41bc060807dec2 (diff)
downloadtcl-61169e4e9e47dcc0b65f18c4c133fc31048a32a3.zip
tcl-61169e4e9e47dcc0b65f18c4c133fc31048a32a3.tar.gz
tcl-61169e4e9e47dcc0b65f18c4c133fc31048a32a3.tar.bz2
merge 8.7
Diffstat (limited to 'win/tclWinThrd.c')
-rw-r--r--win/tclWinThrd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/win/tclWinThrd.c b/win/tclWinThrd.c
index 8c130a7..5ea407e 100644
--- a/win/tclWinThrd.c
+++ b/win/tclWinThrd.c
@@ -41,7 +41,7 @@ static CRITICAL_SECTION initLock;
* obvious reasons, cannot use any dyamically allocated storage.
*/
-#ifdef TCL_THREADS
+#if TCL_THREADS
static struct Tcl_Mutex_ {
CRITICAL_SECTION crit;
@@ -76,7 +76,7 @@ static CRITICAL_SECTION joinLock;
* The per-thread event and queue pointers.
*/
-#ifdef TCL_THREADS
+#if TCL_THREADS
typedef struct ThreadSpecificData {
HANDLE condEvent; /* Per-thread condition event */
@@ -474,7 +474,7 @@ TclpMasterUnlock(void)
Tcl_Mutex *
Tcl_GetAllocMutex(void)
{
-#ifdef TCL_THREADS
+#if TCL_THREADS
if (!allocOnce) {
InitializeCriticalSection(&allocLock.crit);
allocOnce = 1;
@@ -516,7 +516,7 @@ TclFinalizeLock(void)
DeleteCriticalSection(&masterLock);
initialized = 0;
-#ifdef TCL_THREADS
+#if TCL_THREADS
if (allocOnce) {
DeleteCriticalSection(&allocLock.crit);
allocOnce = 0;
@@ -532,7 +532,7 @@ TclFinalizeLock(void)
DeleteCriticalSection(&initLock);
}
-#ifdef TCL_THREADS
+#if TCL_THREADS
/* locally used prototype */
static void FinalizeConditionEvent(ClientData data);