aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/myriadcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/unstable/myriadcache.h')
-rw-r--r--src/unstable/myriadcache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unstable/myriadcache.h b/src/unstable/myriadcache.h
index 7ff2183..7f83250 100644
--- a/src/unstable/myriadcache.h
+++ b/src/unstable/myriadcache.h
@@ -68,6 +68,12 @@ namespace Bu
68 } 68 }
69 69
70 protected: 70 protected:
71 virtual bool _has( const keytype &key )
72 {
73 Bu::ReadWriteMutex::ReadLocker rl( rwStore );
74 return hIndex.has( key );
75 }
76
71 virtual void _create( const obtype *o ) 77 virtual void _create( const obtype *o )
72 { 78 {
73 Bu::ReadWriteMutex::WriteLocker wl( rwStore ); 79 Bu::ReadWriteMutex::WriteLocker wl( rwStore );