summaryrefslogtreecommitdiffstats
path: root/generic/tclAsync.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.7jan.nijtmans2022-10-211-3/+3
|\
* \ Merge 8.7jan.nijtmans2021-08-231-0/+2
|\ \ | |/
| * Make everything compile warning-free when TCL_THREADS=0jan.nijtmans2021-08-231-0/+2
| |\
| | * More implicit type-casts, for better compatibility with C++jan.nijtmans2021-02-051-1/+1
| | |
* | | Repair build failure.dgp2021-08-201-1/+1
| | |
* | | Merge 8.7jan.nijtmans2021-08-201-57/+151
|\ \ \ | |/ /
| * | Fix use of TCL_THREADS macro: In Tcl 8.7, this is always defined, but can ↵jan.nijtmans2021-08-181-1/+1
| | | | | | | | | | | | have value '1' or '0'
| * | tip#511 proposed implementationjan.nijtmans2021-08-171-57/+151
| | |
* | | Merge 8.7jan.nijtmans2020-12-081-2/+2
|\ \ \ | |/ /
| * | Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-2/+2
| | | | | | | | | | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* | | Merge 8.7jan.nijtmans2019-06-301-1/+1
|\ \ \ | |/ /
| * | Eliminate "catch" as variable-name, is a keyword in C++. Also add some ↵jan.nijtmans2019-06-301-1/+1
| |/ | | | | | | type-casts, making it more C++-friendly.
* | Change ckalloc and friends to Tcl_Alloc and friends. Add two defines, ↵jan.nijtmans2018-09-011-2/+2
|/ | | | TCL_IO_FAILURE and TCL_NO_LENGTH (experimental, still open to be renamed following discussion)
* 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.
* 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.
| | * 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.
| | * 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.
| | * Made Tcl_AsyncDelete() more tolerant when called after all thread TSDvasiljevic2006-07-111-14/+23
| | | | | | | | | | | | has been garbage-collected.
| * | use Tcl_Panic() instead of panic()das2008-05-031-3/+3
| | |
| * | 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.
| * | 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.
* | | Eliminate various gcc warnings (in -Wextra mode)nijtmans2009-11-181-2/+2
| | |
* | | Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵dkf2009-01-091-2/+2
| | | | | | | | | | | | etc.)
* | | Style improvements - invoking callbacks without visual junk.dkf2008-10-261-2/+2
| | |
* | | use Tcl_Panic() instead of panic()das2008-05-031-3/+3
| | |
* | | 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.
* | | 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.
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | fix formattingdas2007-11-101-2/+3
| |
* | * generic/tclAsync.c:Miguel Sofer2007-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]
* | Made Tcl_AsyncDelete() more tolerant when called after all thread TSDvasiljevic2006-07-111-14/+23
| | | | | | | | has been garbage-collected.
* | ANSIfydkf2005-11-071-18/+18
| |
* | Getting more systematic about styledkf2005-07-191-92/+85
| |
* | 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):
* * 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>
* Thread-safe rewrite for the Tcl_Async* commands.davidg2000-07-261-54/+82
|
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-2/+15
|
* * 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.
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-03-261-0/+265