Mark all timers as final

This commit is contained in:
Tim Wojtulewicz 2020-04-03 15:20:19 -04:00
parent e66148a13a
commit c2375fc88d
14 changed files with 15 additions and 15 deletions

View file

@ -379,7 +379,7 @@ protected:
WeirdStateMap weird_state;
};
class ConnectionTimer : public Timer {
class ConnectionTimer final : public Timer {
public:
ConnectionTimer(Connection* arg_conn, timer_func arg_timer,
double arg_t, bool arg_do_expire, TimerType arg_type)

View file

@ -21,7 +21,7 @@
#include "module_util.h"
// BreakpointTimer used for time-based breakpoints
class BreakpointTimer : public Timer {
class BreakpointTimer final : public Timer {
public:
BreakpointTimer(DbgBreakpoint* arg_bp, double arg_t)
: Timer(arg_t, TIMER_BREAKPOINT)

View file

@ -740,7 +740,7 @@ protected:
int num_fields;
};
class ScheduleTimer : public Timer {
class ScheduleTimer final : public Timer {
public:
ScheduleTimer(const EventHandlerPtr& event, zeek::Args args, double t);
~ScheduleTimer() override;

View file

@ -53,7 +53,7 @@ protected:
FragTimer* expire_timer;
};
class FragTimer : public Timer {
class FragTimer final : public Timer {
public:
FragTimer(FragReassembler* arg_f, double arg_t)
: Timer(arg_t, TIMER_FRAG)

View file

@ -238,7 +238,7 @@ void Reporter::UpdateWeirdStats(const char* name)
++weird_count_by_type[name];
}
class NetWeirdTimer : public Timer {
class NetWeirdTimer final : public Timer {
public:
NetWeirdTimer(double t, const char* name, double timeout)
: Timer(t + timeout, TIMER_NET_WEIRD_EXPIRE), weird_name(name)
@ -250,7 +250,7 @@ public:
std::string weird_name;
};
class FlowWeirdTimer : public Timer {
class FlowWeirdTimer final : public Timer {
public:
using IPPair = std::pair<IPAddr, IPAddr>;

View file

@ -237,7 +237,7 @@ protected:
};
class IPTunnelTimer : public Timer {
class IPTunnelTimer final : public Timer {
public:
IPTunnelTimer(double t, NetSessions::IPPair p)
: Timer(t + BifConst::Tunnel::ip_tunnel_timeout,

View file

@ -22,7 +22,7 @@ uint64_t tot_gap_events = 0;
uint64_t tot_gap_bytes = 0;
class ProfileTimer : public Timer {
class ProfileTimer final : public Timer {
public:
ProfileTimer(double t, ProfileLogger* l, double i)
: Timer(t, TIMER_PROFILE)

View file

@ -84,7 +84,7 @@ TraversalCode TriggerTraversalCallback::PreExpr(const Expr* expr)
namespace trigger {
class TriggerTimer : public Timer {
class TriggerTimer final : public Timer {
public:
TriggerTimer(double arg_timeout, Trigger* arg_trigger)
: Timer(network_time + arg_timeout, TIMER_TRIGGER)

View file

@ -674,7 +674,7 @@ protected:
int expire_access_time;
};
class TableValTimer : public Timer {
class TableValTimer final : public Timer {
public:
TableValTimer(TableVal* val, double t);
~TableValTimer() override;

View file

@ -12,7 +12,7 @@
namespace analyzer {
class AnalyzerTimer : public Timer {
class AnalyzerTimer final : public Timer {
public:
AnalyzerTimer(Analyzer* arg_analyzer, analyzer_timer_func arg_timer,
double arg_t, int arg_do_expire, TimerType arg_type);

View file

@ -13,7 +13,7 @@ namespace file_analysis {
/**
* Timer to periodically check if file analysis for a given file is inactive.
*/
class FileTimer : public Timer {
class FileTimer final : public Timer {
public:
/**

View file

@ -1390,7 +1390,7 @@ RecordType* Manager::StreamColumns(EnumVal* stream_id)
}
// Timer which on dispatching rotates the filter.
class RotationTimer : public Timer {
class RotationTimer final : public Timer {
public:
RotationTimer(double t, Manager::WriterInfo* arg_winfo, bool arg_rotate)
: Timer(t, TIMER_ROTATE)

View file

@ -394,7 +394,7 @@ private:
* parent (supervisor) process has died. If it has died, the supervised
* process self-terminates.
*/
class ParentProcessCheckTimer : public Timer {
class ParentProcessCheckTimer final : public Timer {
public:
/**

View file

@ -9,7 +9,7 @@
namespace threading {
class HeartbeatTimer : public Timer {
class HeartbeatTimer final : public Timer {
public:
HeartbeatTimer(double t) : Timer(t, TIMER_THREAD_HEARTBEAT) {}
virtual ~HeartbeatTimer() {}