summaryrefslogtreecommitdiffstats
path: root/generic/tclThread.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-09-25 17:12:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-09-25 17:12:27 (GMT)
commit9bec80c561ec20b18b44df0912dd050d8d1a671d (patch)
tree9f0bd613306a0bccbbe36a242568f134c97c4c33 /generic/tclThread.c
parent7fd41e8f9eb1f3aef2595b3dd1b3a51507fa5b8b (diff)
parent1f6b04d51b1c1270bf18e1535567f54c952a3158 (diff)
downloadtcl-9bec80c561ec20b18b44df0912dd050d8d1a671d.zip
tcl-9bec80c561ec20b18b44df0912dd050d8d1a671d.tar.gz
tcl-9bec80c561ec20b18b44df0912dd050d8d1a671d.tar.bz2
merge trunk
Diffstat (limited to 'generic/tclThread.c')
-rw-r--r--generic/tclThread.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/generic/tclThread.c b/generic/tclThread.c
index 7882a48..198fa6a 100644
--- a/generic/tclThread.c
+++ b/generic/tclThread.c
@@ -284,45 +284,6 @@ Tcl_MutexFinalize(
/*
*----------------------------------------------------------------------
*
- * TclMutexUnlockAndFinalize --
- *
- * This procedure is invoked to unlock and then finalize a mutex.
- * The mutex must have been locked by Tcl_MutexLock. It is also
- * removed from the list of remembered objects. The mutex can no
- * longer be used after calling this procedure.
- *
- * Results:
- * None.
- *
- * Side effects:
- * Remove the mutex from the list.
- *
- *----------------------------------------------------------------------
- */
-
-void
-TclMutexUnlockAndFinalize(
- Tcl_Mutex *mutexPtr)
-{
-#ifdef TCL_THREADS
- Tcl_Mutex mutex;
-#endif
- TclpMasterLock();
- TclpMutexLock();
-#ifdef TCL_THREADS
- mutex = *mutexPtr;
- *mutexPtr = NULL; /* Force it to be created again. */
- Tcl_MutexUnlock(&mutex);
- TclpFinalizeMutex(&mutex);
-#endif
- ForgetSyncObject(mutexPtr, &mutexRecord);
- TclpMutexUnlock();
- TclpMasterUnlock();
-}
-
-/*
- *----------------------------------------------------------------------
- *
* TclRememberCondition
*
* Keep a list of condition variables used during finalization.