mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
make benchmark reader hartbeat inverval aware
fix small memleak on tablereader destruction make timespread better configureable
This commit is contained in:
parent
b47620e501
commit
1170a87769
6 changed files with 34 additions and 12 deletions
|
@ -9,6 +9,10 @@
|
|||
#include "BasicThread.h"
|
||||
#include "MsgThread.h"
|
||||
|
||||
namespace input { namespace reader {
|
||||
class Benchmark;
|
||||
}}
|
||||
|
||||
namespace threading {
|
||||
|
||||
/**
|
||||
|
@ -80,6 +84,7 @@ public:
|
|||
protected:
|
||||
friend class BasicThread;
|
||||
friend class MsgThread;
|
||||
friend class input::reader::Benchmark; // needs heartbeat
|
||||
|
||||
/**
|
||||
* Registers a new basic thread with the manager. This is
|
||||
|
@ -118,9 +123,10 @@ protected:
|
|||
* Part of the IOSource interface.
|
||||
*/
|
||||
virtual const char* Tag() { return "threading::Manager"; }
|
||||
|
||||
static const int HEART_BEAT_INTERVAL = 10;
|
||||
|
||||
private:
|
||||
static const int HEART_BEAT_INTERVAL = 1;
|
||||
|
||||
typedef std::list<BasicThread*> all_thread_list;
|
||||
all_thread_list all_threads;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue