few tweaks for library performance improvement

This commit is contained in:
Mohamed Boussaffa
2016-03-05 04:53:03 +08:00
parent 245e152854
commit 59e2acb636
2 changed files with 28 additions and 11 deletions

View File

@@ -36,15 +36,17 @@ public:
//register async callback to receive updates
//have to be called before start
static void registerUpdateCallback(Callback const& cb);
static void setRefreshDelay(int seconds);
//start the monitor
static void start();
//stop the monitor
static void stop();
//tuning functions
static void setRefreshDelay(int seconds);
static void setPcapDispatchDelay(int milliseconds);
private:
static void threadProc();
static void handleUpdate();