improved cpu usage

This commit is contained in:
Mohamed Boussaffa
2016-03-05 00:52:57 +08:00
parent 872c4649fa
commit 245e152854
2 changed files with 22 additions and 19 deletions

View File

@@ -36,20 +36,19 @@ 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();
private:
static void threadProc();
static void handleUpdate();
static bool _trace;
static bool _promisc;
};
};
#undef NETHOGS_DSO_VISIBLE
#undef NETHOGS_DSO_HIDDEN