summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-04-28 13:41:13 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-04-28 13:41:13 (GMT)
commit1200929a72dd28e06bd03bd356feb451efd0ff3a (patch)
tree23a7bd997d7f91252971364c06c58d62e998c944
parent879750b2782dfe14fb50ab912be80011348ab23d (diff)
downloadtcl-1200929a72dd28e06bd03bd356feb451efd0ff3a.zip
tcl-1200929a72dd28e06bd03bd356feb451efd0ff3a.tar.gz
tcl-1200929a72dd28e06bd03bd356feb451efd0ff3a.tar.bz2
(cherry-pick): 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 ee088a5..b5f035db 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -1694,7 +1694,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;
}