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

Method clearProgress

common/script/scriptconsole.cpp:191–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191void ScriptConsole::clearProgress(void)
192{
193 std::lock_guard<std::mutex> lock(mMutex);
194 for (auto& layer : mLayers) {
195 layer = Layer{};
196 }
197 mIo = Layer{};
198 mIoNote.clear();
199 // The one call that says "no progress at all any more", so it is also the
200 // one that gives the reserved slots back.
201 mLayerSlots = 0;
202 mIoSlot = false;
203}
204
205void ScriptConsole::setIoNote(std::string note)
206{

Callers 1

ckpt_progress_clearFunction · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected