summaryrefslogtreecommitdiffstats
path: root/mac
diff options
context:
space:
mode:
authorwelch <welch@noemail.net>1999-08-10 02:42:35 (GMT)
committerwelch <welch@noemail.net>1999-08-10 02:42:35 (GMT)
commiteb54c0116544671aed8b3adeaba9fea43f6b5184 (patch)
tree3dda6d8125f2a42360c01e1206096b0d0bd753f3 /mac
parent996ab8b328faaf556d05a949b007343cf183db00 (diff)
downloadtcl-eb54c0116544671aed8b3adeaba9fea43f6b5184.zip
tcl-eb54c0116544671aed8b3adeaba9fea43f6b5184.tar.gz
tcl-eb54c0116544671aed8b3adeaba9fea43f6b5184.tar.bz2
Added Tcl_GetAllocMutex for use by tclAlloc.c and tclCkalloc.c
FossilOrigin-Name: a5ed5c1af78a4d06c9a8ae4b4cfd8227a89c1b08
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
/*