summaryrefslogtreecommitdiffstats
path: root/generic/tclAsync.c
Commit message (Collapse)AuthorAgeFilesLines
* Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-2/+2
| | | | | rest of Tcl source code. No ABI change. API change *should* be harmless. FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
* 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). FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
| * 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. FossilOrigin-Name: 79367df0f0e01a96f037f893e889e7cb9b807847
| | * 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. FossilOrigin-Name: 90b4acd7bdab65433169a232124967885c18d972
| | * Also, panic early if we find out the wrong thread attemptingvasiljevic2008-04-271-1/+9
| | | | | | | | | | | | | | | | | | | | | to delete the async handler (common trap). As, only the one that created the handler is allowed to delete it. FossilOrigin-Name: a060a75b1ed9f5e5e1826e988e659c2ec3e3c385
| | * generic/tclAsync.c: Tcl_AsyncDelete(): panic if attemptvasiljevic2008-04-261-18/+26
| | | | | | | | | | | | | | | | | | | | | to locate handler token fails. Happens when some other thread attempts to delete somebody else's token. FossilOrigin-Name: fe045a6e86f0be632fb9adf9744765b31266146d
| | * Made Tcl_AsyncDelete() more tolerant when called after all thread TSDvasiljevic2006-07-111-14/+23
| | | | | | | | | | | | | | | | | | has been garbage-collected. FossilOrigin-Name: 9cd2581375dd5d702ea66913927d0b49c4184894
| * | use Tcl_Panic() instead of panic()das2008-05-031-3/+3
| | | | | | | | | FossilOrigin-Name: 2d576d5da22f5b11474e1a89aa47ebca7f660fd8
| * | Also, panic early if we find out the wrong thread attemptingvasiljevic2008-04-271-8/+9
| | | | | | | | | | | | | | | | | | | | | to delete the async handler (common trap). As, only the one that created the handler is allowed to delete it. FossilOrigin-Name: c26ff3625b8f215e742001e701bb6798aaeffffb
| * | generic/tclAsync.c: Tcl_AsyncDelete(): panic if attemptvasiljevic2008-04-271-14/+29
| | | | | | | | | | | | | | | | | | | | | to locate handler token fails. Happens when some other thread attempts to delete somebody else's token. FossilOrigin-Name: 1734fc35dad5cc055a0b2eaf5331ccecba35531c
* | | Eliminate various gcc warnings (in -Wextra mode)nijtmans2009-11-181-2/+2
| | | | | | | | | FossilOrigin-Name: 8780faf488c79569934af0cd318800d73489137d
* | | Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵dkf2009-01-091-2/+2
| | | | | | | | | | | | | | | etc.) FossilOrigin-Name: cd3c38f00ada216d7bc93560d3d70012c2918343
* | | Style improvements - invoking callbacks without visual junk.dkf2008-10-261-2/+2
| | | | | | | | | FossilOrigin-Name: a1a8afc25d47810e677f42869f79723f80f3d6a6
* | | use Tcl_Panic() instead of panic()das2008-05-031-3/+3
| | | | | | | | | FossilOrigin-Name: f2076ab1fb02107cf962e9f478301ae96d297918
* | | Also, panic early if we find out the wrong thread attemptingvasiljevic2008-04-271-2/+10
| | | | | | | | | | | | | | | | | | | | | to delete the async handler (common trap). As, only the one that created the handler is allowed to delete it. FossilOrigin-Name: c9ef4f4064de5b962b5b1e56fadd36eec2cfbe66
* | | generic/tclAsync.c: Tcl_AsyncDelete(): panic if attemptvasiljevic2008-04-261-18/+26
|/ / | | | | | | | | | | | | to locate handler token fails. Happens when some other thread attempts to delete somebody else's token. FossilOrigin-Name: 18f18938cce52a247311bc9e7fb8a156bf37973e
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* | fix formattingdas2007-11-101-2/+3
| | | | | | FossilOrigin-Name: 932a0524ab5ff5fa0ad5a0920fbf8ac7b7d726a0
* | * generic/tclAsync.c:msofer2007-11-091-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBasic.c: * generic/tclExecute.c: * generic/tclInt.h: * generic/tclUnixInit.c: * generic/tclUnixPort.h: new fields in interp (ekeko!) to cache TSD data that is accessed at each command invocation, access macros to replace Tcl_AsyncReady and TclpCheckStackSpace by much faster variants [Patch 1829248] FossilOrigin-Name: 41cb112a37e67e6291bde5e4eacb1a0a4275eaa9
* | Made Tcl_AsyncDelete() more tolerant when called after all thread TSDvasiljevic2006-07-111-14/+23
| | | | | | | | | | | | has been garbage-collected. FossilOrigin-Name: d4201e4c4ec7196844a762db3cb5263fbe8ba377
* | ANSIfydkf2005-11-071-18/+18
| | | | | | FossilOrigin-Name: 611d25e47cc0ca4006b861534bc098fb11548f02
* | Getting more systematic about styledkf2005-07-191-92/+85
| | | | | | FossilOrigin-Name: f9332bdd5d0a4fbe98144f883523a472b455e076
* | Patch 922727 committed. Implements three changes:dgp2004-04-061-2/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: Reworked the Tcl header files into a clean * unix/tclUnixPort.h: hierarchy where tcl.h < tclPort.h < tclInt.h * win/tclWinInt.h: and every C source file should #include * win/tclWinPort.h: at most one of those files to satisfy its declaration needs. tclWinInt.h and tclWinPort.h also better organized so that tclWinPort.h includes the Windows implementation of cross-platform declarations, while tclWinInt.h makes declarations that are available on Windows only. * generic/tclBinary.c (TCL_NO_MATH): Deleted the generic/tclMath.h * generic/tclMath.h (removed): header file. The internal Tcl * macosx/Makefile (PRIVATE_HEADERS): header, tclInt.h, has a * win/tcl.dsp: #include <math.h> directly, and file external to Tcl needing libm should do the same. * win/Makefile.in (WIN_OBJS): Deleted the win/tclWinMtherr.c file. * win/makefile.bc (TCLOBJS): It's a vestige from matherr() days * win/makefile.vc (TCLOBJS): gone by. * win/tcl.dsp: * win/tclWinMtherr.c (removed): FossilOrigin-Name: 2e5b18c85c944b46540edfdd6580648e32645e2b
* * generic/tclAsync.c:davygrvy2001-08-301-3/+28
| | | | | | | | | | | | | | | * generic/tclEvent.c: * generic/tclInt.h: Improper cleanup of asyncMutex in tclAsync.c repaired. TclFinalizeSynchronization() was trying to remove a registered mutex that was dumped earlier when the TSD it was stored in was cleared. This was only surfacing on *nix. Windows was being masked by mutexes not actually being returned to the system! That was repaired in a previous patch. Needed to add a private TclFinalizeAsync() to tclAsync.c and called from Tcl_FinalizeThread(). Pheww.. Is this done yet? [Bug: 414419] requested by Rob Ratcliff <rrr6399@futuretek.com> FossilOrigin-Name: 45694540cac7b1c3c2e9703d681cea74f0dc754e
* Thread-safe rewrite for the Tcl_Async* commands.davidg2000-07-261-54/+82
| | | FossilOrigin-Name: 116644925e6002ec9abd0c9763001b0150dc2fdf
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-2/+15
| | | FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
* * win/tclWinPipe.c:stanton1999-03-111-1/+3
| | | | | | | | | | | | | | | | | * generic/tclInt.decls: Added TclWinAddProcess to make it possible for expect to use Tcl_WaitForPid(). This patch is from Gordon Chaffee. * mac/tclMacPort.h: * win/tclWinInit.c: * unix/tclUnixPort.h: * generic/tclAsync.c: Added TclpAsyncMark to fix bug in async handling on Windows where async events don't wake up the event loop. This patch comes from Gordon Chaffee. * generic/tcl.decls: Fixed declarations of reserved slots. FossilOrigin-Name: a03165d0175a3e991abf40e00a65327aac8dc688
* Replaced SCCS strings, fixed binary filescore-8-0-3stanton1998-09-141-1/+1
| | | FossilOrigin-Name: 196f92fd17305db5fec1acd59f6926de11e01624
* Initial revisionrjohnson1998-03-261-0/+265
FossilOrigin-Name: cacdd0f329872d67973970d74c6978730bc24baa