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 /generic/tclAlloc.c | |
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 'generic/tclAlloc.c')
-rw-r--r-- | generic/tclAlloc.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tclAlloc.c b/generic/tclAlloc.c index 099da71..fe64c97 100644 --- a/generic/tclAlloc.c +++ b/generic/tclAlloc.c @@ -15,9 +15,16 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclAlloc.c,v 1.15 2002/02/27 07:08:28 hobbs Exp $ + * RCS: @(#) $Id: tclAlloc.c,v 1.16 2002/04/23 17:03:34 hobbs Exp $ */ +/* + * Windows and Unix use an alternative allocator when building with threads + * that has significantly reduced lock contention. + */ + +#if !defined(TCL_THREADS) || !defined(USE_THREAD_ALLOC) + #include "tclInt.h" #include "tclPort.h" @@ -721,3 +728,4 @@ TclpRealloc(cp, nbytes) } #endif /* !USE_TCLALLOC */ +#endif /* !TCL_THREADS */ |