mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Merge branch 'master' into topic/jsiwek/supervisor
This commit is contained in:
commit
9c0d252c2b
32 changed files with 479 additions and 318 deletions
|
@ -12,7 +12,7 @@ extern "C" {
|
|||
}
|
||||
|
||||
// If you add a timer here, adjust TimerNames in Timer.cc.
|
||||
enum TimerType {
|
||||
enum TimerType : uint8_t {
|
||||
TIMER_BACKDOOR,
|
||||
TIMER_BREAKPOINT,
|
||||
TIMER_CONN_DELETE,
|
||||
|
@ -52,8 +52,7 @@ class ODesc;
|
|||
|
||||
class Timer : public PQ_Element {
|
||||
public:
|
||||
Timer(double t, TimerType arg_type) : PQ_Element(t)
|
||||
{ type = (char) arg_type; }
|
||||
Timer(double t, TimerType arg_type) : PQ_Element(t), type(arg_type) { }
|
||||
~Timer() override { }
|
||||
|
||||
TimerType Type() const { return (TimerType) type; }
|
||||
|
@ -67,8 +66,7 @@ public:
|
|||
|
||||
protected:
|
||||
Timer() {}
|
||||
|
||||
unsigned int type:8;
|
||||
TimerType type;
|
||||
};
|
||||
|
||||
class TimerMgr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue