16 lines
489 B
C++
16 lines
489 B
C++
|
|
#include "message_bus/pipeline/PipelineEngineApi.h"
|
||
|
|
|
||
|
|
namespace softbus::message_bus::pipeline
|
||
|
|
{
|
||
|
|
|
||
|
|
void resetPipelineCounters(PipelineEngine::Counters& counters)
|
||
|
|
{
|
||
|
|
counters.in.store(0, std::memory_order_relaxed);
|
||
|
|
counters.out.store(0, std::memory_order_relaxed);
|
||
|
|
counters.drop.store(0, std::memory_order_relaxed);
|
||
|
|
counters.error.store(0, std::memory_order_relaxed);
|
||
|
|
counters.mergeDrop.store(0, std::memory_order_relaxed);
|
||
|
|
}
|
||
|
|
|
||
|
|
} // namespace softbus::message_bus::pipeline
|