* @brief Disables every consumer enabled by enableConsumers(), then drains their backlogs. */
| 445 | * @brief Disables every consumer enabled by enableConsumers(), then drains their backlogs. |
| 446 | */ |
| 447 | void HotpathBenchmark::disableConsumers() |
| 448 | { |
| 449 | CSV::Export::instance().setExportEnabled(false); |
| 450 | API::Server::instance().setEnabled(false); |
| 451 | #ifdef BUILD_COMMERCIAL |
| 452 | MDF4::Export::instance().setExportEnabled(false); |
| 453 | Sessions::Export::instance().setExportEnabled(false); |
| 454 | #endif |
| 455 | #ifdef ENABLE_GRPC |
| 456 | API::GRPC::GRPCServer::instance().setEnabled(false); |
| 457 | #endif |
| 458 | |
| 459 | CSV::Export::instance().flushWorker(); |
| 460 | API::Server::instance().flushWorker(); |
| 461 | #ifdef BUILD_COMMERCIAL |
| 462 | MDF4::Export::instance().flushWorker(); |
| 463 | Sessions::Export::instance().flushWorker(); |
| 464 | #endif |
| 465 | } |
| 466 | |
| 467 | /** |
| 468 | * @brief Marks every plot/FFT/multiplot/waterfall widget running so its sub-hotpath fires. |
nothing calls this directly
no test coverage detected