summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
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)
commit7433bb1ba2673d75c1f1266e49c236cb98e1182b (patch)
tree23a7bd997d7f91252971364c06c58d62e998c944 /win/tclWinPipe.c
parent9193b9fa6637a1eb6ad1e3ac0607b9a81d600daf (diff)
downloadtcl-7433bb1ba2673d75c1f1266e49c236cb98e1182b.zip
tcl-7433bb1ba2673d75c1f1266e49c236cb98e1182b.tar.gz
tcl-7433bb1ba2673d75c1f1266e49c236cb98e1182b.tar.bz2
(cherry-pick): fix typo-bug (using wrong thread handle by set priority)
Diffstat (limited to 'win/tclWinPipe.c')
-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;
}