Count the frames in the queue
| 385 | |
| 386 | // Count the frames in the queue |
| 387 | int64_t CacheDisk::Count() |
| 388 | { |
| 389 | // Create a scoped lock, to protect the cache from multiple threads |
| 390 | const std::lock_guard<std::recursive_mutex> lock(*cacheMutex); |
| 391 | |
| 392 | // Return the number of frames in the cache |
| 393 | return frames.size(); |
| 394 | } |
| 395 | |
| 396 | // Clean up cached frames that exceed the number in our max_bytes variable |
| 397 | void CacheDisk::CleanUp() |
no outgoing calls
no test coverage detected