Lines Matching full:it
52 // if we didn't find the key, we need to write lock the whole map to create it in incrementCounter()
53 ReadWriteCounterMap::iterator it = counters_.find(key); in incrementCounter() local
54 if (it == counters_.end()) { in incrementCounter()
58 it = counters_.find(key); in incrementCounter()
59 if(it == counters_.end()){ in incrementCounter()
66 it->second.lock(); in incrementCounter()
67 int64_t count = it->second.value + amount; in incrementCounter()
68 it->second.value = count; in incrementCounter()
69 it->second.unlock(); in incrementCounter()
77 // if we didn't find the key, we need to write lock the whole map to create it in setCounter()
78 ReadWriteCounterMap::iterator it = counters_.find(key); in setCounter() local
79 if (it == counters_.end()) { in setCounter()
85 it->second.lock(); in setCounter()
86 it->second.value = value; in setCounter()
87 it->second.unlock(); in setCounter()
96 for(ReadWriteCounterMap::iterator it = counters_.begin(); in getCounters() local
97 it != counters_.end(); ++it) in getCounters()
99 _return[it->first] = it->second.value; in getCounters()
107 ReadWriteCounterMap::iterator it = counters_.find(key); in getCounter() local
108 if (it != counters_.end()) { in getCounter()
109 it->second.lock(); in getCounter()
110 rv = it->second.value; in getCounter()
111 it->second.unlock(); in getCounter()