From 6a9b7eb45844274b0a4b6d52f7f32aa724541468 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Dec 2013 13:01:42 +0300 Subject: add restrict into packetcounters. --- src/net/packetcounters.cpp | 4 +++- src/net/packetcounters.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/net') diff --git a/src/net/packetcounters.cpp b/src/net/packetcounters.cpp index 65ece62f8..8a87fc9bb 100644 --- a/src/net/packetcounters.cpp +++ b/src/net/packetcounters.cpp @@ -104,7 +104,9 @@ int PacketCounters::getOutPackets() } -void PacketCounters::updateCounter(int ¤tSec, int &calc, int &counter) +void PacketCounters::updateCounter(int &restrict currentSec, + int &restrict calc, + int &restrict counter) { const int idx = cur_time % 60; if (currentSec != idx) diff --git a/src/net/packetcounters.h b/src/net/packetcounters.h index 713a13451..9fae01ff1 100644 --- a/src/net/packetcounters.h +++ b/src/net/packetcounters.h @@ -58,7 +58,9 @@ public: static int mOutPacketsCalc; private: - static void updateCounter(int ¤tSec, int &calc, int &counter); + static void updateCounter(int &restrict currentSec, + int &restrict calc, + int &restrict counter); }; #endif // NET_PACKETCOUNTERS_H -- cgit v1.2.3-70-g09d2