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

Function beginLocalRun

switch/source/transferstatus.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 void beginLocalRun(const std::string& mode, size_t totalFiles, bool cancellable)
63 {
64 std::lock_guard<std::mutex> lock(sMutex);
65 sState.mode = mode;
66 sState.cancellable = cancellable;
67 sState.copyCount = 0;
68 sState.copyTotal = totalFiles;
69 sState.currentFile.clear();
70 sState.currentFileSize = 0;
71 sState.currentFileOffset = 0;
72 }
73
74 void startFile(const std::string& name, u64 size)
75 {

Callers 1

beginMethod · 0.70

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected