aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2015-08-16 23:20:20 +0000
committerMike Buland <eichlan@xagasoft.com>2015-08-16 23:20:20 +0000
commited7666695f9e01441e829941f4f3d08328f9b53f (patch)
tree3b4654ebc341bc52efde638e335617035ce8db47 /src
parent6939ae56531e7c7f066e88c97862c9aa28278edd (diff)
downloadlibbu++-ed7666695f9e01441e829941f4f3d08328f9b53f.tar.gz
libbu++-ed7666695f9e01441e829941f4f3d08328f9b53f.tar.bz2
libbu++-ed7666695f9e01441e829941f4f3d08328f9b53f.tar.xz
libbu++-ed7666695f9e01441e829941f4f3d08328f9b53f.zip
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.
Diffstat (limited to '')
-rw-r--r--src/unstable/cachebase.h1
1 files changed, 1 insertions, 0 deletions
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
617 Entry *pEnt = NULL; 617 Entry *pEnt = NULL;
618 try 618 try
619 { 619 {
620 Bu::ReadWriteMutex::ReadLocker rl( mCacheEntry );
620 pEnt = hCacheEntry.get( *i ); 621 pEnt = hCacheEntry.get( *i );
621 } 622 }
622 catch( Bu::HashException ) 623 catch( Bu::HashException )