⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 threadmonitor.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
// -*- c-basic-offset: 4 -*-#ifndef CLICK_THREADMONITOR_HH#define CLICK_THREADMONITOR_HH/* * =c * ThreadMonitor([INTERVAL, THRESH]) * =s IP * print out thread status * =d * * Every INTERVAL number of ms, print out tasks scheduled on each thread if * tasks are busy. INTERVAL by default is 1000 ms. Only tasks with cycle count * of at least THRESH are printed. By default THRESH is 1000 cycles. * * =a * StaticThreadSched, BalancedThreadSched */#include <click/element.hh>#include <click/timer.hh>class ThreadMonitor : public Element { public:    ThreadMonitor();    ~ThreadMonitor();      const char *class_name() const	{ return "ThreadMonitor"; }    int configure(Vector<String> &, ErrorHandler *);    int initialize(ErrorHandler *);    void run_timer();  private:    Timer _timer;    unsigned _interval;    unsigned _thresh;    };#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -