From 2785816f6adac764ff1a93a100bc8cae1464227f Mon Sep 17 00:00:00 2001 From: Joe Mistachkin Date: Wed, 17 Jun 2015 20:32:01 +0000 Subject: Rename the new API to TclMutexUnlockAndFinalize as it is not platform-specific. --- generic/tclInt.h | 2 +- generic/tclThread.c | 4 ++-- unix/tclUnixNotfy.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/generic/tclInt.h b/generic/tclInt.h index 5a8c9ca..5527773 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -3061,7 +3061,7 @@ MODULE_SCOPE void TclpMasterLock(void); MODULE_SCOPE void TclpMasterUnlock(void); MODULE_SCOPE void TclpMutexLock(void); MODULE_SCOPE void TclpMutexUnlock(void); -MODULE_SCOPE void TclpMutexUnlockAndFinalize(Tcl_Mutex *mutex); +MODULE_SCOPE void TclMutexUnlockAndFinalize(Tcl_Mutex *mutex); MODULE_SCOPE int TclpMatchFiles(Tcl_Interp *interp, char *separators, Tcl_DString *dirPtr, char *pattern, char *tail); MODULE_SCOPE int TclpObjNormalizePath(Tcl_Interp *interp, diff --git a/generic/tclThread.c b/generic/tclThread.c index 065df0e..c2112b7 100644 --- a/generic/tclThread.c +++ b/generic/tclThread.c @@ -284,7 +284,7 @@ Tcl_MutexFinalize( /* *---------------------------------------------------------------------- * - * TclpMutexUnlockAndFinalize -- + * TclMutexUnlockAndFinalize -- * * This procedure is invoked to unlock and then finalize a mutex. * The mutex must have been locked by Tcl_MutexLock. It is also @@ -301,7 +301,7 @@ Tcl_MutexFinalize( */ void -TclpMutexUnlockAndFinalize( +TclMutexUnlockAndFinalize( Tcl_Mutex *mutexPtr) { Tcl_Mutex mutex; diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c index a009fb1..17fdc95 100644 --- a/unix/tclUnixNotfy.c +++ b/unix/tclUnixNotfy.c @@ -1384,7 +1384,7 @@ AtForkChild(void) { TclpMutexUnlock(); TclpMasterUnlock(); - TclpMutexUnlockAndFinalize(¬ifierMutex); + TclMutexUnlockAndFinalize(¬ifierMutex); Tcl_InitNotifier(); } #endif /* HAVE_PTHREAD_ATFORK */ -- cgit v0.12