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

Method enableConsumers

app/src/Benchmark/HotpathBenchmark.cpp:431–442  ·  view source on GitHub ↗

* @brief Enables every local export/output consumer (CSV/MDF4/Sessions/API/gRPC). */

Source from the content-addressed store, hash-verified

429 * @brief Enables every local export/output consumer (CSV/MDF4/Sessions/API/gRPC).
430 */
431void HotpathBenchmark::enableConsumers()
432{
433 CSV::Export::instance().setExportEnabled(true);
434 API::Server::instance().setEnabled(true);
435#ifdef BUILD_COMMERCIAL
436 MDF4::Export::instance().setExportEnabled(true);
437 Sessions::Export::instance().setExportEnabled(true);
438#endif
439#ifdef ENABLE_GRPC
440 API::GRPC::GRPCServer::instance().setEnabled(true);
441#endif
442}
443
444/**
445 * @brief Disables every consumer enabled by enableConsumers(), then drains their backlogs.

Callers

nothing calls this directly

Calls 2

setExportEnabledMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected