comparison ThreadSafeLookup.hpp @ 34:fda70a362ed5

Remove whitespace.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Thu, 06 Sep 2012 21:33:24 +0200
parents 06166d6c083b
children 60c1e0a2cacf
comparison
equal deleted inserted replaced
33:44a3c32dd0cb 34:fda70a362ed5
48 bool insert(const Key_t& key, const Value_t& value, bool forceInsert = false) 48 bool insert(const Key_t& key, const Value_t& value, bool forceInsert = false)
49 { 49 {
50 typename Locking<isLocking>::Locker_t lock(&masterLock); 50 typename Locking<isLocking>::Locker_t lock(&masterLock);
51 typename map_t::iterator c = map.find(key); 51 typename map_t::iterator c = map.find(key);
52 bool exists = (c != map.end()); 52 bool exists = (c != map.end());
53 53
54 if (exists) { 54 if (exists) {
55 c.value() = value; 55 c.value() = value;
56 } 56 }
57 else { 57 else {
58 map.insert(key, value); 58 map.insert(key, value);