| 144 | } |
| 145 | |
| 146 | int64_t |
| 147 | increment(IdType id, uint64_t val = 1) |
| 148 | { |
| 149 | auto metric = lookup(id); |
| 150 | |
| 151 | return (metric ? metric->_value.fetch_add(val, MEMORY_ORDER) : NOT_FOUND); |
| 152 | } |
| 153 | |
| 154 | int64_t |
| 155 | decrement(IdType id, uint64_t val = 1) |
no test coverage detected