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

Method reset

common/script/scriptconsole.cpp:51–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void ScriptConsole::reset(void)
52{
53 std::lock_guard<std::mutex> lock(mMutex);
54 mLines.clear();
55 mOpen = false;
56 mGen++;
57 for (auto& layer : mLayers) {
58 layer = Layer{};
59 }
60 mIo = Layer{};
61 mIoNote.clear();
62 mIoRateDone = 0;
63 mLayerSlots = 0;
64 mIoSlot = false;
65}
66
67// Stops a bar without emptying it: what it reached, and what it was working
68// on, stay on screen. Only a rate is dropped — nothing is moving any more.

Callers 1

startMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected