summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--unix/tclUnixThrd.c2
-rw-r--r--win/tclWinThrd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index 42b6bda..3a59624 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -502,8 +502,8 @@ retry:
TclpMutexUnlock();
goto retry;
}
- pthread_mutex_lock(pmutexPtr);
TclpMutexUnlock();
+ pthread_mutex_lock(pmutexPtr);
}
/*
diff --git a/win/tclWinThrd.c b/win/tclWinThrd.c
index 4748818..ef42a83 100644
--- a/win/tclWinThrd.c
+++ b/win/tclWinThrd.c
@@ -647,8 +647,8 @@ retry:
TclpMutexUnlock();
goto retry;
}
- EnterCriticalSection(csPtr);
TclpMutexUnlock();
+ EnterCriticalSection(csPtr);
}
/*