Count the frames in the queue
| 238 | |
| 239 | // Count the frames in the queue |
| 240 | int64_t CacheMemory::Count() |
| 241 | { |
| 242 | // Create a scoped lock, to protect the cache from multiple threads |
| 243 | const std::lock_guard<std::recursive_mutex> lock(*cacheMutex); |
| 244 | |
| 245 | // Return the number of frames in the cache |
| 246 | return frames.size(); |
| 247 | } |
| 248 | |
| 249 | // Clean up cached frames that exceed the number in our max_bytes variable |
| 250 | void CacheMemory::CleanUp() |
nothing calls this directly
no outgoing calls
no test coverage detected