context bind
This commit is contained in:
15
src/message_bus/pipeline/PipelineEngineApi.cpp
Normal file
15
src/message_bus/pipeline/PipelineEngineApi.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user