| 43 | } |
| 44 | |
| 45 | uint32_t ContentRepository::getStreamCount(const minifi::ResourceClaim &streamId) { |
| 46 | std::lock_guard<std::mutex> lock(count_map_mutex_); |
| 47 | auto cnt = count_map_.find(streamId.getContentFullPath()); |
| 48 | if (cnt != count_map_.end()) { |
| 49 | return cnt->second; |
| 50 | } else { |
| 51 | return 0; |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | void ContentRepository::incrementStreamCount(const minifi::ResourceClaim &streamId) { |
| 56 | std::lock_guard<std::mutex> lock(count_map_mutex_); |
no test coverage detected