diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-09-24 10:54:07 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-09-24 10:54:07 (GMT) |
| commit | 92b0e1240376f8353e5d7792183d1bb856698146 (patch) | |
| tree | 3552bbb539fdc3bd92e752345c554eeee27d648b /generic/tclThread.c | |
| parent | c3eea370e5cbfd2a155a8362db528bcbe2bf299b (diff) | |
| parent | 856c560b711097332ff0c365280afe4bc7dcd7f7 (diff) | |
| download | tcl-92b0e1240376f8353e5d7792183d1bb856698146.zip tcl-92b0e1240376f8353e5d7792183d1bb856698146.tar.gz tcl-92b0e1240376f8353e5d7792183d1bb856698146.tar.bz2 | |
Fix [5d170b5ca5e12743006d737c79f959f3efabc644|5d170b5ca5]: checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier
Diffstat (limited to 'generic/tclThread.c')
| -rw-r--r-- | generic/tclThread.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/generic/tclThread.c b/generic/tclThread.c index 17071e5..d3cf4ba 100644 --- a/generic/tclThread.c +++ b/generic/tclThread.c @@ -283,45 +283,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. |
