mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Move Timer and PriorityQueue classes to namespaces
This commit is contained in:
parent
910aa77d95
commit
1c17700c48
33 changed files with 206 additions and 140 deletions
|
@ -11,6 +11,8 @@
|
|||
#include "iosource/Manager.h"
|
||||
#include "iosource/PktSrc.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
// Names of timers in same order than in TimerType.
|
||||
const char* TimerNames[] = {
|
||||
"BackdoorTimer",
|
||||
|
@ -108,7 +110,6 @@ void TimerMgr::InitPostScript()
|
|||
iosource_mgr->Register(this, true);
|
||||
}
|
||||
|
||||
|
||||
PQ_TimerMgr::PQ_TimerMgr() : TimerMgr()
|
||||
{
|
||||
q = new PriorityQueue;
|
||||
|
@ -188,3 +189,5 @@ double PQ_TimerMgr::GetNextTimeout()
|
|||
|
||||
return -1;
|
||||
}
|
||||
|
||||
} // namespace zeek::detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue