summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
diff options
context:
space:
mode:
authormig <mig>2011-03-18 12:54:54 (GMT)
committermig <mig>2011-03-18 12:54:54 (GMT)
commitd39d0d10ce4528636fd31ff8b8395689c601ecf4 (patch)
treefa0e823ccf0388ab9b5df5c91c91aa1247cf1624 /unix/tclUnixThrd.c
parentd93502805549e12df3a79ffe8bd23204b04925fc (diff)
downloadtcl-d39d0d10ce4528636fd31ff8b8395689c601ecf4.zip
tcl-d39d0d10ce4528636fd31ff8b8395689c601ecf4.tar.gz
tcl-d39d0d10ce4528636fd31ff8b8395689c601ecf4.tar.bz2
development branch for allocator changes
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r--unix/tclUnixThrd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index 0469d7a..a4db0df 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -676,12 +676,11 @@ TclpInetNtoa(
#endif
}
-#ifdef TCL_THREADS
+#if defined(TCL_THREADS)
/*
* Additions by AOL for specialized thread memory allocator.
*/
-#ifdef USE_THREAD_ALLOC
static volatile int initialized = 0;
static pthread_key_t key;
@@ -718,6 +717,7 @@ TclpFreeAllocMutex(
free(lockPtr);
}
+
void
TclpFreeAllocCache(
void *ptr)
@@ -760,8 +760,9 @@ TclpSetAllocCache(
{
pthread_setspecific(key, arg);
}
-#endif /* USE_THREAD_ALLOC */
+#endif
+#ifdef TCL_THREADS
void *
TclpThreadCreateKey(void)
{