MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / request

Method request

switch/source/backupsize.cpp:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void BackupSizeCache::request(u64 id, const std::string& rootPath)
42{
43 std::lock_guard<std::mutex> lock(mMutex);
44 if (mStop.load() || mCache.count(id) != 0 || mPending.count(id) != 0) {
45 return;
46 }
47 mPending.insert(id);
48 mQueue.emplace_back(id, rootPath);
49 ensureWorker();
50 mCond.notify_one();
51}
52
53std::optional<u64> BackupSizeCache::total(u64 id)
54{

Callers 1

rebuildMethod · 0.45

Calls 3

emplace_backMethod · 0.80
loadMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected