MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / flushAll

Method flushAll

pj_runtime/src/DataSourceRuntimeHost.cpp:275–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void DataSourceRuntimeHost::flushAll() {
276 if (flushed_) {
277 return;
278 }
279 flushed_ = true;
280 source_write_host_.flushPending();
281 // Each parser binding owns its own DatastoreParserWriteHost / DataWriter
282 // pair — their open chunks are independent from the source's. Without this
283 // their pending rows never reach the reader, so the catalog sees the
284 // column descriptors but bounds()/samples() return nothing and curves
285 // drop in with empty plots.
286 for (auto& [binding_id, binding] : parser_bindings_) {
287 if (binding.write_host != nullptr) {
288 binding.write_host->flushPending();
289 }
290 }
291}
292
293void DataSourceRuntimeHost::flushPending() {
294 source_write_host_.flushPending();

Callers 13

~ToolboxRuntimeHostMethod · 0.45
onReleaseParserIngestMethod · 0.45
TESTFunction · 0.45
runPausedIntegralLuauFunction · 0.45
addScalarSamplesFunction · 0.45
seedMethod · 0.45
writeScalarSamplesFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
seedMethod · 0.45
seedMultiColumnMethod · 0.45
addScalarTopicFunction · 0.45

Calls 1

flushPendingMethod · 0.45

Tested by 11

TESTFunction · 0.36
runPausedIntegralLuauFunction · 0.36
addScalarSamplesFunction · 0.36
seedMethod · 0.36
writeScalarSamplesFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
seedMethod · 0.36
seedMultiColumnMethod · 0.36
addScalarTopicFunction · 0.36
TESTFunction · 0.36