summaryrefslogtreecommitdiff
path: root/src/unstable/cachebase.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unstable/cachebase.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unstable/cachebase.h b/src/unstable/cachebase.h
index d5b4382..2e0f24f 100644
--- a/src/unstable/cachebase.h
+++ b/src/unstable/cachebase.h
@@ -351,6 +351,14 @@ namespace Bu
351 bLocked = false; 351 bLocked = false;
352 } 352 }
353 353
354 void lock()
355 {
356 if( bLocked )
357 return;
358 rPtr.lock();
359 bLocked = true;
360 }
361
354 private: 362 private:
355 MyType &rPtr; 363 MyType &rPtr;
356 bool bLocked; 364 bool bLocked;