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

Method Count

src/CacheDisk.cpp:387–394  ·  view source on GitHub ↗

Count the frames in the queue

Source from the content-addressed store, hash-verified

385
386// Count the frames in the queue
387int64_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
397void CacheDisk::CleanUp()

Callers 11

ReadStreamMethod · 0.45
CheckWorkingFramesMethod · 0.45
GetFrameMethod · 0.45
SeekMethod · 0.45
prefetchWindowMethod · 0.45
runMethod · 0.45
CacheMemory.cppFile · 0.45
CacheDisk.cppFile · 0.45
Timeline.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected