diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-08-19 11:26:52 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-08-19 11:26:52 (GMT) |
commit | 023624c3c93c61c06e6b5a70f6f86ae0105cadf3 (patch) | |
tree | 2a421599a0603d3240ad97f01dd612a8877aad58 /unix | |
parent | b8a93e84238b33a7e2a1cb5503d3e784f7723150 (diff) | |
parent | da2329ba8bd05643596e9747d40e5ece018a79f7 (diff) | |
download | tcl-023624c3c93c61c06e6b5a70f6f86ae0105cadf3.zip tcl-023624c3c93c61c06e6b5a70f6f86ae0105cadf3.tar.gz tcl-023624c3c93c61c06e6b5a70f6f86ae0105cadf3.tar.bz2 |
merge trunk.
Remove now unused internal functions.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixThrd.c | 60 |
1 files changed, 4 insertions, 56 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c index 02f18b8..ae81c5f 100644 --- a/unix/tclUnixThrd.c +++ b/unix/tclUnixThrd.c @@ -385,58 +385,6 @@ TclpMasterUnlock(void) /* *---------------------------------------------------------------------- * - * TclpMutexLock - * - * This procedure is used to grab a lock that serializes locking - * another mutex. - * - * Results: - * None. - * - * Side effects: - * None. - * - *---------------------------------------------------------------------- - */ - -void -TclpMutexLock(void) -{ -#ifdef TCL_THREADS - pthread_mutex_lock(&mutexLock); -#endif -} - - -/* - *---------------------------------------------------------------------- - * - * TclpMutexUnlock - * - * This procedure is used to release a lock that serializes locking - * another mutex. - * - * Results: - * None. - * - * Side effects: - * None. - * - *---------------------------------------------------------------------- - */ - -void -TclpMutexUnlock(void) -{ -#ifdef TCL_THREADS - pthread_mutex_unlock(&mutexLock); -#endif -} - - -/* - *---------------------------------------------------------------------- - * * Tcl_GetAllocMutex * * This procedure returns a pointer to a statically initialized mutex for @@ -510,17 +458,17 @@ retry: MASTER_UNLOCK; } while (1) { - TclpMutexLock(); + pthread_mutex_lock(&mutexLock); pmutexPtr = *((pthread_mutex_t **)mutexPtr); if (pmutexPtr == NULL) { - TclpMutexUnlock(); + pthread_mutex_unlock(&mutexLock); goto retry; } if (pthread_mutex_trylock(pmutexPtr) == 0) { - TclpMutexUnlock(); + pthread_mutex_unlock(&mutexLock); return; } - TclpMutexUnlock(); + pthread_mutex_unlock(&mutexLock); /* * BUGBUG: All core and Thread package tests pass when usleep() * is used; however, the Thread package tests hang at |