Mercurial > dedupe
diff ThreadSafeLookup.hpp @ 16:06166d6c083b
Add configuration processing.
Cache DB values
Add a custom RBTree to save space.
Track multiple DB connections properly.
More testing.
Add ValueExistsException.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Tue, 28 Aug 2012 18:58:02 +0200 |
| parents | b5943e4bf676 |
| children | fda70a362ed5 |
line wrap: on
line diff
--- a/ThreadSafeLookup.hpp Sat Aug 25 01:42:13 2012 +0200 +++ b/ThreadSafeLookup.hpp Tue Aug 28 18:58:02 2012 +0200 @@ -31,10 +31,10 @@ typedef QHash<Key_t, Value_t> map_t; map_t map; - typename Locking<isLocking>::Lock_t masterLock; + mutable typename Locking<isLocking>::Lock_t masterLock; public: - boost::optional<Value_t> value(const Key_t& key) + boost::optional<Value_t> value(const Key_t& key) const { boost::optional<Value_t> retVal; typename Locking<isLocking>::Locker_t lock(&masterLock);
