summaryrefslogtreecommitdiffstats
path: root/win/tclWinInt.h
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2002-04-23 17:03:34 (GMT)
committerhobbs <hobbs@noemail.net>2002-04-23 17:03:34 (GMT)
commit0de8f2233a3bc83a13d1b4aa74ee20299b6a4bdf (patch)
treed5a9ad88cb63d360c0bef3b2ec2d73058e8e0227 /win/tclWinInt.h
parent24cf19108a8e056a67c9fa5099dc2c7dc8ec1309 (diff)
downloadtcl-0de8f2233a3bc83a13d1b4aa74ee20299b6a4bdf.zip
tcl-0de8f2233a3bc83a13d1b4aa74ee20299b6a4bdf.tar.gz
tcl-0de8f2233a3bc83a13d1b4aa74ee20299b6a4bdf.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). FossilOrigin-Name: 28a1df4ae96a0577db4a8cfd061ba44c460b3bfa
Diffstat (limited to 'win/tclWinInt.h')
-rw-r--r--win/tclWinInt.h9
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"