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

Method progress

common/script/scriptconsole.cpp:299–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299ScriptConsole::ProgressSnapshot ScriptConsole::progress(void) const
300{
301 std::lock_guard<std::mutex> lock(mMutex);
302 ProgressSnapshot snap;
303 for (size_t i = 0; i < MAX_LAYERS; i++) {
304 snap.layers[i] = mLayers[i];
305 if (mLayers[i].active) {
306 snap.layerCount = i + 1;
307 }
308 }
309 snap.io = mIo;
310 snap.layerSlots = mLayerSlots;
311 snap.ioSlot = mIoSlot;
312 return snap;
313}
314
315std::string ScriptConsole::tail(size_t maxBytes) const
316{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected