summaryrefslogtreecommitdiffstats
path: root/win/tclWinConsole.c
Commit message (Collapse)AuthorAgeFilesLines
* added a missing comment line to show that use of TerminateThread is evil.davygrvy2002-11-261-1/+3
|
* * win/tclWinConsole.c:davygrvy2002-11-261-44/+131
| | | | | | | | | | | | | | | | * win/tclWinPipe.c: * win/tclWinSerial.c: * win/tclWinSock.c: * win/tclWinThrd.c: * win/tclWinTime.c: General cleanup of all worker threads used by the channel drivers. Eliminates the normal case where the worker thread is terminated ('cept the winsock one). Instead, use kernel events to signal a clean exit. Only when the worker thread is blocked on an I/O call is the thread terminated. Essentially, this makes all other channel worker threads behave like the PipeReaderThread() function for it's cleaner exit behavior. This appears to fix [Bug 597924] but needs 3rd party confirmation to close the issue.
* * generic/tclEvent.c (TclInExit, TclInThreadExit):mdejong2002-11-071-4/+4
| | | | | | | | | | | | | | | Split out functionality of TclInExit to make it clear which one should be called in each situation. * generic/tclInt.decls: Declare TclInThreadExit. * generic/tclIntDecls.h: Regen. * generic/tclStubInit.c: Regen. * mac/tclMacChan.c (StdIOClose): * unix/tclUnixChan.c (FileCloseProc): * win/tclWinChan.c (FileCloseProc): * win/tclWinConsole.c (ConsoleCloseProc): * win/tclWinPipe.c (TclpCloseFile): * win/tclWinSerial.c (SerialCloseProc): Invoke the new TclInThreadExit method instead of TclInExit.
* * win/tclWinConsole.c (ConsoleCloseProc): only wait on writablehobbs2002-09-021-3/+9
| | | | | pipe if there was something to write. This may prevent infinite wait on exit.
* * Updated APIs in the file generic/tclIO.c according to the guidelinesdgp2002-01-151-4/+4
| | | | | | | | | | | of TIP 27. Several minor documentation corrections as well. * Updated channel driver interface according to the guidelines of TIP 27. See also [Bug 500348]. * Moved Tcl_EolTranslation enum declaration from generic/tcl.h to generic/tclInt.h (renamed to TclEolTranslation). It is not used anywhere in Tcl's public interface.
* * win/tclWinConsole.c:mdejong2001-07-161-2/+1
| | | | | | | | | | * win/tclWinPipe.c: * win/tclWinPort.h: * win/tclWinSerial.c: * win/tclWinThrd.c: Remove unnecessary #includes of dos.h, direct.h, and tchar.h. This will help the Cygwin porting effort since these headers do not exist under Cygwin.
* up-port of the stacked channel implementation rewrite in 8.3.2 tohobbs2000-09-281-2/+6
| | | | 8.4a2 code base, merged in with some existing new 8.4a2 features.
* * win/tclWinConsole.c: cast and header cleanup [Bug: 5625]hobbs2000-05-221-15/+6
|
* Bug fixes for threaded Tcl on NT with single and dual CPUs. Still someredman1999-07-271-3/+5
| | | | open issues, this code is a little more stable though.
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-0/+1272