flow-monitor: Fix clang-tidy warnings
This commit is contained in:
@@ -162,7 +162,8 @@ FlowMonitor::ReportFirstTx(Ptr<FlowProbe> probe,
|
||||
|
||||
#ifdef NS3_MTP
|
||||
while (m_lock.exchange(true, std::memory_order_acquire))
|
||||
;
|
||||
{
|
||||
};
|
||||
#endif
|
||||
|
||||
TrackedPacket& tracked = m_trackedPackets[std::make_pair(flowId, packetId)];
|
||||
@@ -203,7 +204,8 @@ FlowMonitor::ReportForwarding(Ptr<FlowProbe> probe,
|
||||
|
||||
#ifdef NS3_MTP
|
||||
while (m_lock.exchange(true, std::memory_order_acquire))
|
||||
;
|
||||
{
|
||||
};
|
||||
#endif
|
||||
|
||||
std::pair<FlowId, FlowPacketId> key(flowId, packetId);
|
||||
@@ -244,7 +246,8 @@ FlowMonitor::ReportLastRx(Ptr<FlowProbe> probe,
|
||||
|
||||
#ifdef NS3_MTP
|
||||
while (m_lock.exchange(true, std::memory_order_acquire))
|
||||
;
|
||||
{
|
||||
};
|
||||
#endif
|
||||
|
||||
auto tracked = m_trackedPackets.find(std::make_pair(flowId, packetId));
|
||||
@@ -326,7 +329,8 @@ FlowMonitor::ReportDrop(Ptr<FlowProbe> probe,
|
||||
|
||||
#ifdef NS3_MTP
|
||||
while (m_lock.exchange(true, std::memory_order_acquire))
|
||||
;
|
||||
{
|
||||
};
|
||||
#endif
|
||||
|
||||
probe->AddPacketDropStats(flowId, packetSize, reasonCode);
|
||||
|
||||
@@ -149,7 +149,8 @@ Ipv4FlowClassifier::Classify(const Ipv4Header& ipHeader,
|
||||
|
||||
#ifdef NS3_MTP
|
||||
while (m_lock.exchange(true, std::memory_order_acquire))
|
||||
;
|
||||
{
|
||||
};
|
||||
#endif
|
||||
|
||||
// try to insert the tuple, but check if it already exists
|
||||
|
||||
@@ -150,7 +150,8 @@ Ipv6FlowClassifier::Classify(const Ipv6Header& ipHeader,
|
||||
|
||||
#ifdef NS3_MTP
|
||||
while (m_lock.exchange(true, std::memory_order_acquire))
|
||||
;
|
||||
{
|
||||
};
|
||||
#endif
|
||||
|
||||
// try to insert the tuple, but check if it already exists
|
||||
|
||||
Reference in New Issue
Block a user