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

Method shutdown

switch/source/backupsize.cpp:109–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void BackupSizeCache::shutdown(void)
110{
111 {
112 std::lock_guard<std::mutex> lock(mMutex);
113 if (mStop.load()) {
114 return;
115 }
116 mStop.store(true);
117 }
118 mCond.notify_all();
119 if (mWorker.joinable()) {
120 mWorker.join();
121 }
122}
123
124void BackupSizeCache::workerLoop(void)
125{

Callers 1

mainFunction · 0.45

Calls 3

storeMethod · 0.80
loadMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected