| 86 | } |
| 87 | |
| 88 | void 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 | |
| 100 | void SampleQueue::CleanQueue(std::unique_lock<std::mutex>& lock) { |
| 101 | const auto* dg3 = dynamic_cast<detail::Dg3Block*>(&data_group_); |