summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
diff options
context:
space:
mode:
authorwelch <welch>1999-08-10 17:17:27 (GMT)
committerwelch <welch>1999-08-10 17:17:27 (GMT)
commit7cd43815d0b5a7b4c81e4fd496673bc241e83eb1 (patch)
tree7fcb9d46657d529dd86dea55ccfde3d49e9a5ce3 /unix/tclUnixThrd.c
parent29e7f1a55250207e75c6e1e5ef5871a569514f62 (diff)
downloadtcl-7cd43815d0b5a7b4c81e4fd496673bc241e83eb1.zip
tcl-7cd43815d0b5a7b4c81e4fd496673bc241e83eb1.tar.gz
tcl-7cd43815d0b5a7b4c81e4fd496673bc241e83eb1.tar.bz2
Fixed level of indirection in Tcl_GetAllocMutex
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r--unix/tclUnixThrd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index a9127a7..47e56d7 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -41,6 +41,7 @@ static pthread_mutex_t initLock = PTHREAD_MUTEX_INITIALIZER;
*/
static pthread_mutex_t allocLock = PTHREAD_MUTEX_INITIALIZER;
+static pthread_mutex_t *allocLockPtr = &allocLock;
/*
* These are for the critical sections inside this file.
@@ -279,7 +280,7 @@ Tcl_Mutex *
Tcl_GetAllocMutex()
{
#ifdef TCL_THREADS
- return (Tcl_Mutex *)&allocLock;
+ return (Tcl_Mutex *)&allocLockPtr;
#else
return NULL;
#endif