summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-04-28 13:13:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-04-28 13:13:10 (GMT)
commit4336f614ad52c35a1e41c9b1d737dd086ab85a83 (patch)
tree2f4700dd4f6f8302e371f72187f5ae67546c9ff4
parent2836feb5d8fbaffcd6371c423cd0a0b0eebac840 (diff)
downloadtcl-4336f614ad52c35a1e41c9b1d737dd086ab85a83.zip
tcl-4336f614ad52c35a1e41c9b1d737dd086ab85a83.tar.gz
tcl-4336f614ad52c35a1e41c9b1d737dd086ab85a83.tar.bz2
(cherry-pick from "fix-1997007" branch): fix typo-bug (using wrong thread handle by set priority)
-rw-r--r--win/tclWinPipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index 4666deb..4775418 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -1618,7 +1618,7 @@ TclpCreateCommandChannel(
infoPtr->stopWriter = CreateEvent(NULL, TRUE, FALSE, NULL);
infoPtr->writeThread = CreateThread(NULL, 256, PipeWriterThread,
infoPtr, 0, &id);
- SetThreadPriority(infoPtr->readThread, THREAD_PRIORITY_HIGHEST);
+ SetThreadPriority(infoPtr->writeThread, THREAD_PRIORITY_HIGHEST);
infoPtr->validMask |= TCL_WRITABLE;
}