summaryrefslogtreecommitdiffstats
path: root/win/tclWinThrd.c
Commit message (Collapse)AuthorAgeFilesLines
* Workaround for mingw versions which don't provide _fpcontrol in float.hjan.nijtmans2012-11-141-0/+8
|\
| * Workaround for mingw versions which don't provide _fpcontrol in float.hjan.nijtmans2012-11-141-0/+8
| |
* | 360894 Threads inherit floating point config from their creator thread.dgp2012-11-131-4/+71
|\ \ | |/
| * Make compilation of the fp control changes possible with MinGW.Joe Mistachkin2012-09-131-3/+10
| |
| * Free the WinThread structure before running the original thread procedure.Joe Mistachkin2012-09-131-1/+8
| |
| * Initial work on SF FRQ #3567063.Joe Mistachkin2012-09-131-4/+56
| |
* | [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-1/+1
|\ \ | |/
* | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
|\ \ | |/ | | more harm than good. Purged them.
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | more harm than good. Purged them.
| * Thread exit handler marks the current thread as un-initialized.vasiljevic2007-03-241-12/+7
| | | | | | | | | | | | This allows exit handlers that are registered later to re-initialize this subsystem in case they need to use some sync primitives (cond variables) from this file again.
| * * win/tclWinThrd.c (TclpFinalizeThreadData): move tlsKey defnhobbs2005-05-301-20/+26
| | | | | | | | to top of file and clarify name (was 'key'). [Bug 1204064]
| * Renamed TclWinFreeAllocCache to TclpFreeAllocCache and fixedvasiljevic2005-04-071-20/+21
| | | | | | | | | | | | to recognize when being called with NULL argument. This is a signal for it to clean up the tsd key associated with the threading allocator. Part of fixing the Tcl Bug #1178445.
| * * generic/tclAlloc.c: Fixed [Tcl SF Bug 1030548], aandreas_kupries2004-10-281-3/+4
| | | | | | | | | | | | | | * generic/tclThreadAlloc.c: threaded debug build on Windows * win/tclWinThrd.c: now works again. Had to touch Unix * unix/tclUnixThrd.c: as well. Basic patch by Kevin, with modifications by myself.
| * * generic/tclEvent.c: Correct threaded obj allocator tohobbs2004-07-211-7/+28
| | | | | | | | | | | | | | * generic/tclInt.h: fully cleanup on exit and allow for * generic/tclThreadAlloc.c: reinitialization. [Bug #736426] * unix/tclUnixThrd.c: (mistachkin, kenny) * win/tclWinThrd.c:
| * Redefined MASTER_LOCK to call TclpMasterLock for the sake of Tcl APIvasiljevic2004-07-191-4/+6
| | | | | | | | users never creating interpreters.
| * Corrected Tcl Bug #770053vasiljevic2004-06-221-3/+3
| |
| * * generic/tclInt.h:davygrvy2004-05-061-5/+36
| | | | | | | | | | | | | | | | | | * generic/tclThread.c: * generic/tclEvent.c: * unix/tclUnixThrd.c: * win/tclWinThrd.c: Provisions made so masterLock, initLock, allocLock and joinLock mutexes can be recovered during Tcl_Finalize.
| * revert back to 1.24.2.2 from prior mistaken commit.davygrvy2004-04-231-34/+5
| |
| * * win/tclWinTime.c: If the Tcl_ExitProc (StopCalibration) isdavygrvy2004-04-231-5/+34
| | | | | | | | | | called from the stack frame of DllMain's PROCESS_DETACH, the wait operation should timeout and continue.
| * fix for [Bug 732477]Joe Mistachkin2003-05-131-7/+7
| |
| * * win/tclWinThrd.c: Applied SF patch #727271. This patch changesandreas_kupries2003-04-251-9/+54
| | | | | | | | | | | | | | | | | | | | the code to catch any errors returned by the windows functions handling TLS ASAP instead of waiting to get some mysterious crash later on due to bogus pointers. Patch provided by Joe Mistachkin. This is a stop-gap measure to deal with the low number of ?TLS slots provided by some of the variants of Windows (60-80).
* | Various CYGWIN-related fixesnijtmans2010-01-311-10/+18
| | | | | | | | | | | | | | | | | | backported from HEAD. Still configure script not modified, so CYGWIN build is still disabled. Reason: although the build succeeds with those changes, many tests still fail.
* | * changes: Update for 8.5.6 release.dgp2008-12-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * library/tclIndex: Removed reference to no-longer-extant procedure 'tclLdAout'. * doc/library.n: Corrected mention of 'auto_exec' to 'auto_execok'. [Patch 2114900] thanks to Stu Cassoff <stwo@users.sf.net> Backport of 2008-11-26 commit from Kevin Kenny. * win/tclWinThrd.c (TclpThreadCreate): We need to initialize the thread id variable to 0 as on 64 bit windows this is a pointer sized field while windows only fills it with a 32 bit value. The result is an inability to join the threads as the ids cannot be matched. Backport of 2008-10-13 commit from Pat Thoyts.
* | Thread exit handler marks the current thread as un-initialized.vasiljevic2007-03-241-12/+6
| | | | | | | | | | | | This allows exit handlers that are registered later to re-initialize this subsystem in case they need to use some sync primitives (cond variables) from this file again.
* | Various minor object file size efficiency fixes. [Bug 1530474]dkf2006-08-101-5/+5
| |
* | ANSIfydkf2005-11-041-45/+46
| |
* | radical refactoring of thread storage to untangle dependenciesKevin B Kenny2005-08-111-201/+1
| |
* | Getting more systematic about styledkf2005-07-241-232/+253
| |
* | Fixed Tcl Bug #1204064.vasiljevic2005-05-301-9/+9
| |
* | Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
| |
* | Corrected a compilation error in the --enable-threads configurationKevin B Kenny2005-05-051-8/+13
| |
* | Renamed TclWinFreeAllocCache to TclpFreeAllocCache and fixed to recognizevasiljevic2005-04-161-20/+23
| | | | | | | | | | when being called with NULL argument. This is a signal for it to clean up the tsd key associated with the threading allocator.
* | * tests/registry.test: Fixed test files to load the correctdavygrvy2004-10-271-2/+3
| | | | | | | | | | | | | | | | | | * tests/winDde.test: registry and dde packages by using the info * win/Makefile.in: from makefiles to tell tcltest where to load * win/makefile.vc: them from. This avoids grabbing the wrong package from $auto_path which might be the install point rather than the dev location. Kudos to Jennifer Hom for adding -load and -loadfile to the tcltest package. [Bug 926088]
* | * generic/tclEvent.c: Correct threaded obj allocator tohobbs2004-07-211-7/+28
| | | | | | | | | | | | | | * generic/tclInt.h: fully cleanup on exit and allow for * generic/tclThreadAlloc.c: reinitialization. [Bug #736426] * unix/tclUnixThrd.c: (mistachkin, kenny) * win/tclWinThrd.c:
* | Redefined MASTER_LOCK in win/tclWinThrd.c to call TclpMasterLock for thevasiljevic2004-07-191-4/+6
| | | | | | | | sake of Tcl API users never creating Tcl interpreters.
* | Integrated fix for Tcl Bug #770053 from core-8-4-branchvasiljevic2004-06-221-3/+3
| |
* | A little source clean-up with the allocOnce variable.davygrvy2004-04-271-4/+6
| |
* | * generic/tclInt.h:davygrvy2004-04-231-5/+36
| | | | | | | | | | | | | | | | | | * generic/tclThread.c: * generic/tclEvent.c: * unix/tclUnixThrd.c: * win/tclWinThrd.c: Provisions made so masterLock, initLock, allocLock and joinLock mutexes can be recovered during Tcl_Finalize.
* | * win/tclWinThrd.c (Tcl_ConditionNotify): condPtr must be dereferenceddavygrvy2004-01-111-2/+2
| | | | | | | | | | to see if there are waiters else uninitialized datum is manipulated. [Bug 849007]
* | All uses of 'panic' (the macro) changeddavygrvy2003-12-241-13/+13
| | | | | | | | | | | | | | to 'Tcl_Panic' (the function). The #define of panic in tcl.h clearly states it is deprecated in the comments. [Patch 865264]
* | fix for [Bug 732477]Joe Mistachkin2003-05-131-7/+7
| |
* | * win/tclWinThrd.c: Applied SF patch #727271. This patch changesandreas_kupries2003-04-251-9/+54
|/ | | | | | | | | | the code to catch any errors returned by the windows functions handling TLS ASAP instead of waiting to get some mysterious crash later on due to bogus pointers. Patch provided by Joe Mistachkin. This is a stop-gap measure to deal with the low number of ?TLS slots provided by some of the variants of Windows (60-80).
* Fix mingw build problems and compiler warnings.mdejong2003-01-141-1/+9
| | | | | | | | | | | | | | | | * generic/tcl.h: Add if defined(__MINGW32__) check to code that sets the TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER. * generic/tclClock.c (FormatClock): Don't define savedTimeZone and savedTZEnv if we are not going to use them. * generic/tclEnv.c: Add cast to avoid warning. * win/tclWinChan.c: Use DWORD instead of int to avoid compiler warning. * win/tclWinThrd.c: Only define allocLock, allocLockPtr, and dataKey when TCL_THREADS is defined. This avoid a compiler warning about unused variables.
* * win/tclWinThrd.c (TclpMasterUnlock):hobbs2002-12-101-36/+23
| | | | | * generic/tclThread.c (TclFinalizeThreadData): TclpMasterUnlock must exist and be called unconditional of TCL_THREADS. [Bug #651139]
* * win/tclWinConsole.c:davygrvy2002-11-261-2/+2
| | | | | | | | | | | | | | | | * 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.
* * win/tclWinThrd.c (Tcl_CreateThread/TclpThreadExit): Fixeddavygrvy2002-11-191-3/+3
| | | | | | | improper compiler macros that missed the VC++ compiler. This resulted in VC++ builds using CreateThread()/ExitThread() in place of the proper _beginthreadex()/_endthreadex(). This was a large error and am surprised I missed seeing it earlier.
* * win/tclWinThrd.c (TclpFinalizeThreadData, TclWinFreeAllocCache):macosx_8_4_premerge_2002_08_31_trunkmacosx_8_4_merge_2002_08_30_trunkandreas_kupries2002-08-291-10/+7
| | | | | Applied patch for bug #599428, provided by Miguel Sofer <msofer@users.sourceforge.net>.
* * generic/tclAlloc.c:hobbs2002-04-231-2/+76
| | | | | | | | | | | | | | | * generic/tclInt.h: * generic/tclThreadAlloc.c (new): * unix/Makefile.in: * unix/tclUnixThrd.c: * win/Makefile.in: * win/tclWinInt.h: * win/tclWinThrd.c: added new threaded allocator contributed by AOL that significantly reduces lock contention when multiple threads are in use. Only Windows and Unix implementations are ready, and the Windows one may need work. It is only used by default on Unix for now, and requires that USE_THREAD_ALLOC be defined (--enable-threads on Unix will define this).
* * win/tclWinThrd.c (TclpThreadExit): Cast status argument tomdejong2001-09-071-2/+2
| | | | | _endthreadex to unsigned instead of DWORD to match the Win32 function prototype.
* * tclWinThrd.c: Revisited _beginthreadex() stuff. Instead of assumingdavygrvy2001-09-051-9/+10
| | | | | a c-runtime implimentation of _beginethreadex normal, I reversed the logic to not assume, and use when is.