aboutsummaryrefslogtreecommitdiff
path: root/src/unstable
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unstable/cachebase.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/unstable/cachebase.h b/src/unstable/cachebase.h
index 436a8ae..1584246 100644
--- a/src/unstable/cachebase.h
+++ b/src/unstable/cachebase.h
@@ -263,6 +263,21 @@ namespace Bu
263 CachePtrInterface<keytype, basetype>::releaseRef( pCache, pEnt, pData ); 263 CachePtrInterface<keytype, basetype>::releaseRef( pCache, pEnt, pData );
264 } 264 }
265 265
266 bool isSet() const
267 {
268 if( pCache )
269 return true;
270 return false;
271 }
272
273 void clear()
274 {
275 unbind();
276 pCache = NULL;
277 pEnt = NULL;
278 pData = NULL;
279 }
280
266 void lock() 281 void lock()
267 { 282 {
268 bind(); 283 bind();