summaryrefslogtreecommitdiffstats
path: root/generic/tclEvent.c
Commit message (Collapse)AuthorAgeFilesLines
* Some VOID -> void, Tcl_TraceVar -> Tcl_TraceVar2 and Tcl_VarTraceInfo -> ↵jan.nijtmans2013-02-271-2/+2
| | | | Tcl_VarTraceInfo2 conversions.
* Bug 3576509: Better fix, which helps for all Tcl_DictObjGet() calls in Tcl's ↵jan.nijtmans2012-10-141-1/+1
|\ | | | | | | source code.
| * Bug 357650: Better fix, which helps for all Tcl_DictObjGet() calls in Tcl's ↵jan.nijtmans2012-10-141-1/+1
| | | | | | | | source code.
* | Bug 3576509: tcl::Bgerror crashes with invalid argumentsjan.nijtmans2012-10-131-1/+1
|\ \ | |/
| * Bug 3576509: tcl::Bgerror crashes with invalid argumentsjan.nijtmans2012-10-131-1/+1
| |
* | more result generation conversiondkf2012-08-031-4/+5
| |
* | [Bug 2919042] Restore "valgrindability" of Tcl that was lost by the ↵ferrieux2011-08-091-19/+30
| | | | | | | | streamlining of [exit], by conditionally forcing a full Finalize: use -DPURIFY or ::env(TCL_FINALIZE_ON_EXIT)
* | More generation of errorCode information (default [bgerror] and [glob]).dkf2011-04-021-0/+2
| |
* | Correct bizarre name of enumeration member.dkf2011-03-241-2/+2
| |
* | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-21/+20
| | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | MINOR: Formatting fixes, mainly to comments, so code better fits the style indkf2011-03-101-1/+0
| | | | | | the Engineering Manual.
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * 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.
| | * Backport fix for [Bug 1028264]: WSACleanup() too early. The fix introduces ↵ferrieux2009-04-271-7/+106
| | | | | | | | | | | | "late exit handlers" for similar late process-wide cleanups.
| | * * generic/tclEvent.c (Tcl_CreateThread): Replaced some calls todgp2007-03-191-3/+3
| | | | | | | | | | | | | | | | | | * generic/tclPkg.c (CheckVersion): Tcl_Alloc() with calls to * unix/tclUnixTime.c (SetTZIfNecessary): ckalloc(), which better * win/tclAppInit.c (setargv): supports memory debugging.
| | * Cosmetic touches and identationvasiljevic2006-03-101-7/+7
| | |
| | * backport of 2005-08-10 fix to tclEvent.cKevin B Kenny2005-08-161-19/+19
| | |
| | * * generic/tclCompExpr.c: Untangled some dependencies in thedgp2005-08-031-11/+27
| | | | | | | | | | | | | | | | | | * generic/tclEvent.c: order of finalization routines. * generic/tclInt.h: [Bug 1251399] * generic/tclObj.c:
| | * finalize Tcl_Preserve after exit handlersKevin B Kenny2005-06-241-1/+4
| | |
| | * bug 1225727Kevin B Kenny2005-06-221-1/+16
| | |
| | * * generic/tclEvent.c (Tcl_Finalize): Re-organized Tcl_Finalizedgp2004-07-301-24/+24
| | | | | | | | | | | | | | | so that Tcl_ExitProc's that call Tcl_Finalize recursively do not cause deadlock. [Patch 999084 fixes Tk Bug 714956]
| | * * generic/tclEvent.c: Correct threaded obj allocator tohobbs2004-07-211-2/+4
| | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: fully cleanup on exit and allow for * generic/tclThreadAlloc.c: reinitialization. [Bug #736426] * unix/tclUnixThrd.c: (mistachkin, kenny) * win/tclWinThrd.c:
| | * Remoevd initialization of TSD for the new thread in NewThreadProc()vasiljevic2004-07-151-10/+1
| | | | | | | | | | | | since this will result in TclInitNotifier never being called.
| | * Backout of changes to fix the Tcl Bug #770053.vasiljevic2004-07-151-2/+7
| | | | | | | | | | | | See SF bugreport for more info.
| | * Fixed broken build on Windows caused by missing TCL_THREAD_CREATE_RETURNvasiljevic2004-07-131-1/+3
| | | | | | | | | | | | | | | in NewThreadProc(). This is backported from head. Thnx to Kevin Kenny for spotting this.
| | * Corrected Tcl Bug #770053vasiljevic2004-06-221-3/+93
| | |
| | * (TclSetLibraryPath): Suppress a warning [from DKF]davygrvy2004-05-061-3/+3
| | |
| | * * generic/tclEvent.c: TclSetLibraryPath's use of caching thedavygrvy2004-05-061-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stringrep of the pathPtr object to TclGetLibraryPath called from another thread was ineffective if the original's stringrep had been invalidated as what happens when it gets muted to a list. * generic/tclInt.h: * 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.
| | * Removed unused variable to reduce compiler warnings. [Bug 664745]dkf2003-05-131-3/+7
| | |
| * | * generic/tclCmdAH.c: Fix cases where value returned bydgp2010-09-231-1/+2
| | | | | | | | | | | | | | | | | | * generic/tclEvent.c: Tcl_GetReturnOptions() was leaked. * generic/tclMain.c: Thanks to Jeff Hobbs for discovery of the anti-pattern to seek and destroy.
| * | * generic/tclObj.c: [Bug 2871908]: Plug memory leaks of theandreas_kupries2009-10-071-1/+2
| | | | | | | | | | | | | | | | | | | | | objThreadMap and lineCLPtr hashtables. Also make the names of the continuation line information initialization and finalization functions more consistent. Patch supplied by Joe Mistachkin <joe@mistachkin.com>.
| * | Backport fix for [Bug 1028264]: WSACleanup() too early. The fix introduces ↵ferrieux2009-04-271-2/+102
| | | | | | | | | | | | "late exit handlers" for similar late process-wide cleanups.
* | | * generic/tclCmdAH.c: Fix cases where value returned bydgp2010-09-231-1/+2
| | | | | | | | | | | | | | | | | | * generic/tclEvent.c: Tcl_GetReturnOptions() was leaked. * generic/tclMain.c: Thanks to Jeff Hobbs for discovery of the anti-pattern to seek and destroy.
* | | Simplify Tcl_AppInit and *_Init definitions.nijtmans2010-06-161-4/+4
| | | | | | | | | | | | | | | | | | Change TclpThreadCreate and Tcl_CreateThread signature, making clear that "proc" is a function pointer, as in all other "proc" function parameters.
* | | More tidying up (whitespace, spelling, useless parentheses, useless casts)dkf2010-02-241-78/+94
| | |
* | | Refined the 20090617 patch on [exit] streamlining, so that it now correctly ↵ferrieux2009-07-221-5/+14
| | | | | | | | | | | | calls thread exit handlers for the calling thread, which includes <Destroy> bindings in Tk [Bug 2001201 again].
* | | Apply patch from [Bug 988703]. Many thanks to Joe Mistachkin for development.dkf2009-06-181-1/+2
| | |
* | | Applied a patch by George Peter Staplin drastically reducing the ambition of ↵ferrieux2009-06-171-33/+65
| | | | | | | | | | | | [exit] wrt finalization, and thus solving many multi-thread teardown issues [Bugs 2001201, 486399, and possibly 597575, 990457, 1437595, 2750491].
* | | - eliminate some unnessary type castsnijtmans2009-02-101-2/+2
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | Fix [Bug 1028264]: WSACleanup() too early. The fix introduces "late exit ↵ferrieux2009-01-271-2/+102
| | | | | | | | | | | | handlers" for similar late process-wide cleanups.
* | | TIP #337 IMPLEMENTATIONdgp2008-12-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/BackgdErr.3: Converted internal routine * doc/interp.n: TclBackgroundException() into public routine * generic/tcl.decls: Tcl_BackgroundException(). * generic/tclEvent.c: * generic/tclInt.decls: * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclStubInit.c: * generic/tclIO.c: Update callers. * generic/tclIOCmd.c: * generic/tclInterp.c: * generic/tclTimer.c: *** POTENTIAL INCOMPATIBILITY only for extensions using the converted internal routine ***
* | | Style improvements - invoking callbacks without visual junk.dkf2008-10-261-6/+5
| | |
* | | Add "const" to many internalnijtmans2008-10-161-3/+3
| | | | | | | | | | | | | | | const tables. No functional or API change.
* | | * doc/Exit.3: do not call Tcl_Finalize implicitlyhobbs2008-08-011-3/+4
| | | | | | | | | | | | | | | | | | | | | * generic/tclEvent.c: on DLL_PROCESS_DETACH as it may lead * win/tclWin32Dll.c (DllMain): to issues and the user should be explicitly calling Tcl_Finalize before unloading regardless. Clarify the docs to note the explicit need in embedded use.
* | | TIP 285 ImplementationJoe Mistachkin2008-06-131-11/+24
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-8/+8
|/ /
* | * generic/tclEvent.c (TclDefaultBgErrorHandlerObjCmd): Added errordgp2008-03-101-14/+41
| | | | | | | | | | * tests/event.test (event-5.*): checking to protect against callers passing invalid return options dictionaries. [Bug 1901113]
* | * generic/tclBasic.c (Tcl_AppendObjToErrorInfo): Revised thedgp2008-02-291-2/+1
| | | | | | | | | | | | | | | | | | | | refcount management of Tcl_AppendObjToErrorInfo to become that of a conventional Consumer routine. This preserves the ease of use for the overwhelming common callers who pass in a 0-count value, but makes the proper call with a non-0-count value less surprising. * generic/tclEvent.c (TclDefaultBgErrorHandlerObjCmd): Revised the one caller within Tcl itself which passes a non-0-count value to Tcl_AppendObjToErrorInfo().
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |