summaryrefslogtreecommitdiffstats
path: root/mac
diff options
context:
space:
mode:
authorwelch <welch>1999-08-10 02:42:36 (GMT)
committerwelch <welch>1999-08-10 02:42:36 (GMT)
commit24e9f11aa2c7e32ed6e8a0e6a2c7ae4f0ff12bac (patch)
tree3dda6d8125f2a42360c01e1206096b0d0bd753f3 /mac
parent3a26c6d4498ad6fad866d54c7b23cb221fe21898 (diff)
downloadtcl-24e9f11aa2c7e32ed6e8a0e6a2c7ae4f0ff12bac.zip
tcl-24e9f11aa2c7e32ed6e8a0e6a2c7ae4f0ff12bac.tar.gz
tcl-24e9f11aa2c7e32ed6e8a0e6a2c7ae4f0ff12bac.tar.bz2
Added Tcl_GetAllocMutex for use by tclAlloc.c and tclCkalloc.c
Diffstat (limited to 'mac')
-rw-r--r--mac/tclMacThrd.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/mac/tclMacThrd.c b/mac/tclMacThrd.c
index 7790e5f..75f5e35 100644
--- a/mac/tclMacThrd.c
+++ b/mac/tclMacThrd.c
@@ -308,6 +308,33 @@ TclpMasterUnlock()
#endif
}
+
+/*
+ *----------------------------------------------------------------------
+ *
+ * Tcl_GetAllocMutex
+ *
+ * This procedure returns a pointer to a statically initialized
+ * mutex for use by the memory allocator. The alloctor must
+ * use this lock, because all other locks are allocated...
+ *
+ * Results:
+ * A pointer to a mutex that is suitable for passing to
+ * Tcl_MutexLock and Tcl_MutexUnlock.
+ *
+ * Side effects:
+ * None.
+ *
+ *----------------------------------------------------------------------
+ */
+
+Tcl_Mutex *
+Tcl_GetAllocMutex()
+{
+ /* There is nothing to do on the Mac */
+ return NULL;
+}
+
#ifdef TCL_THREADS
/*