summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-04-05 10:41:05 (GMT)
committersebres <sebres@users.sourceforge.net>2017-04-05 10:41:05 (GMT)
commit21c607d91ac4d1bd5fbe8820ec592293970c347f (patch)
tree6ef69010fb5df6a845c636cca69ffc921976916c /win/tclWinPipe.c
parentd124e69932241980f1f75dc94c7abbf4981ccb95 (diff)
downloadtcl-21c607d91ac4d1bd5fbe8820ec592293970c347f.zip
tcl-21c607d91ac4d1bd5fbe8820ec592293970c347f.tar.gz
tcl-21c607d91ac4d1bd5fbe8820ec592293970c347f.tar.bz2
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 48dcc25..fce039c 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -1626,7 +1626,7 @@ TclpCreateCommandChannel(
infoPtr->writeThreadExiting = FALSE;
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;
wEvents[wEventsCnt++] = infoPtr->startWriter;
} else {