From ed7666695f9e01441e829941f4f3d08328f9b53f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 16 Aug 2015 23:20:20 +0000 Subject: Thread safety update for the previous commit. I left one structure access unprotected, but fortunately this time I was able to use a read lock which is much lest nasty and persistant. --- src/unstable/cachebase.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/unstable') diff --git a/src/unstable/cachebase.h b/src/unstable/cachebase.h index 5da4ce9..1216e78 100644 --- a/src/unstable/cachebase.h +++ b/src/unstable/cachebase.h @@ -617,6 +617,7 @@ namespace Bu Entry *pEnt = NULL; try { + Bu::ReadWriteMutex::ReadLocker rl( mCacheEntry ); pEnt = hCacheEntry.get( *i ); } catch( Bu::HashException ) -- cgit v1.2.3