diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-04-05 09:34:56 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-04-05 09:34:56 (GMT) |
commit | f19dc488c7222a8e782fd227736f0d440c806bc4 (patch) | |
tree | bd2d423da13901270dfb339abfcd6c5ed9c91f86 /generic/tclThreadAlloc.c | |
parent | f9c97ea67073aa3e2fa22b80e826b3d491e3440c (diff) | |
download | tcl-f19dc488c7222a8e782fd227736f0d440c806bc4.zip tcl-f19dc488c7222a8e782fd227736f0d440c806bc4.tar.gz tcl-f19dc488c7222a8e782fd227736f0d440c806bc4.tar.bz2 |
Reduce amount of unreachable code. Refactor Win socket and load code to be less
baroque in its internals.
Diffstat (limited to 'generic/tclThreadAlloc.c')
-rw-r--r-- | generic/tclThreadAlloc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/generic/tclThreadAlloc.c b/generic/tclThreadAlloc.c index ad1d510..e4261d6 100644 --- a/generic/tclThreadAlloc.c +++ b/generic/tclThreadAlloc.c @@ -812,15 +812,7 @@ LockBucket( Cache *cachePtr, int bucket) { -#if 0 - if (Tcl_MutexTryLock(bucketInfo[bucket].lockPtr) != TCL_OK) { - Tcl_MutexLock(bucketInfo[bucket].lockPtr); - cachePtr->buckets[bucket].numWaits++; - sharedPtr->buckets[bucket].numWaits++; - } -#else Tcl_MutexLock(bucketInfo[bucket].lockPtr); -#endif cachePtr->buckets[bucket].numLocks++; sharedPtr->buckets[bucket].numLocks++; } |