MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / SaveQueue

Method SaveQueue

lib/mdflib/mdflib/src/samplequeue.cpp:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void SampleQueue::SaveQueue(std::unique_lock<std::mutex>& lock) {
89 // Save uncompressed data in last DG3 block
90 // MDF 3 can only store one DG in real-time. By ignoring
91 // the SaveQueue() function when more than one DG block, the
92 // samples are queued in memory and when CleanQueue is called
93 // the samples are stored as normal.
94 if (NofDgBlocks() > 1) {
95 return;
96 }
97 CleanQueue(lock);
98}
99
100void SampleQueue::CleanQueue(std::unique_lock<std::mutex>& lock) {
101 const auto* dg3 = dynamic_cast<detail::Dg3Block*>(&data_group_);

Callers 1

WorkThreadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected