diff options
author | hobbs <hobbs> | 2002-04-23 17:03:34 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2002-04-23 17:03:34 (GMT) |
commit | d6befe3b0ecd8da7c936827f0c6c2e3fb41b6496 (patch) | |
tree | d5a9ad88cb63d360c0bef3b2ec2d73058e8e0227 /win/tclWinInt.h | |
parent | bf47097699f7f908f97e75a28b1b8d0817ed7bae (diff) | |
download | tcl-d6befe3b0ecd8da7c936827f0c6c2e3fb41b6496.zip tcl-d6befe3b0ecd8da7c936827f0c6c2e3fb41b6496.tar.gz tcl-d6befe3b0ecd8da7c936827f0c6c2e3fb41b6496.tar.bz2 |
* generic/tclAlloc.c:
* 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).
Diffstat (limited to 'win/tclWinInt.h')
-rw-r--r-- | win/tclWinInt.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/win/tclWinInt.h b/win/tclWinInt.h index 3ed0143..f0e8e42 100644 --- a/win/tclWinInt.h +++ b/win/tclWinInt.h @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinInt.h,v 1.13 2002/03/22 23:37:39 hobbs Exp $ + * RCS: @(#) $Id: tclWinInt.h,v 1.14 2002/04/23 17:03:35 hobbs Exp $ */ #ifndef _TCLWININT @@ -102,6 +102,13 @@ EXTERN TclWinProcs *tclWinProcs; */ EXTERN void TclWinInit(HINSTANCE hInst); +#if defined(TCL_THREADS) && defined(USE_THREAD_ALLOC) +EXTERN void TclWinFreeAllocCache(void); +EXTERN void TclFreeAllocCache(void *); +EXTERN Tcl_Mutex *TclpNewAllocMutex(void); +EXTERN void *TclpGetAllocCache(void); +EXTERN void TclpSetAllocCache(void *); +#endif /* TCL_THREADS */ #include "tclIntPlatDecls.h" |