devicesbus stage

This commit is contained in:
flower_linux
2026-03-30 11:11:05 +08:00
parent 35fb913957
commit 1ab3523ea9
6 changed files with 53 additions and 3 deletions

View File

@@ -67,6 +67,7 @@ void PipelineEngine::setPluginManager(std::shared_ptr<softbus::core::plugin_syst
m_pluginManager = std::move(pluginManager);
}
// 管道引擎运行线程 从 ingress 队列中取出数据 进行处理 然后推送到 egress 队列中
void PipelineEngine::run()
{
while (m_running.load()) {
@@ -77,9 +78,13 @@ void PipelineEngine::run()
}
const bool framed = stage1Framer(ctx);
// 帧解析
const bool parsed = framed && stage2Parser(ctx);
// 过滤
const bool filtered = parsed && stage3Filter(ctx);
// 验证
const bool valid = filtered && stage4Validator(ctx);
// 如果验证失败 则记录错误
if (!valid) {
++m_counters.error;
continue;