diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2007-11-09 21:35:16 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2007-11-09 21:35:16 (GMT) |
commit | b4735e76da5d332e785a396168efb7230a88d8fe (patch) | |
tree | eb56f5290785cb8ac4ee8de28f240ced1a4fe001 /generic/tclAsync.c | |
parent | 2ebefee1b05df6c41125e6bc8ed768c0cc4f50dc (diff) | |
download | tcl-b4735e76da5d332e785a396168efb7230a88d8fe.zip tcl-b4735e76da5d332e785a396168efb7230a88d8fe.tar.gz tcl-b4735e76da5d332e785a396168efb7230a88d8fe.tar.bz2 |
* generic/tclAsync.c:
* 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]
Diffstat (limited to 'generic/tclAsync.c')
-rw-r--r-- | generic/tclAsync.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclAsync.c b/generic/tclAsync.c index f53e9fa..73c5073 100644 --- a/generic/tclAsync.c +++ b/generic/tclAsync.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclAsync.c,v 1.10 2006/07/11 14:29:14 vasiljevic Exp $ + * RCS: @(#) $Id: tclAsync.c,v 1.11 2007/11/09 21:35:17 msofer Exp $ */ #include "tclInt.h" @@ -324,6 +324,12 @@ Tcl_AsyncReady(void) ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); return tsdPtr->asyncReady; } + +int * +TclGetAsyncReadyPtr(void) { + ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); + return &(tsdPtr->asyncReady); +} /* * Local Variables: |