MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / Count

Method Count

src/CacheMemory.cpp:240–247  ·  view source on GitHub ↗

Count the frames in the queue

Source from the content-addressed store, hash-verified

238
239// Count the frames in the queue
240int64_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
250void CacheMemory::CleanUp()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected