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

📄 rrsched.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
// -*- c-basic-offset: 4 -*-#ifndef CLICK_RRSCHED_HH#define CLICK_RRSCHED_HH#include <click/element.hh>#include <click/notifier.hh>CLICK_DECLS/* * =c * RoundRobinSched * =s scheduling * pulls from round-robin inputs * =io * one output, zero or more inputs * =d * Each time a pull comes in the output, pulls from its inputs * in turn until one produces a packet. When the next pull * comes in, it starts from the input after the one that * last produced a packet. This amounts to a round robin * scheduler. * * The inputs usually come from Queues or other pull schedulers. * RoundRobinSched uses notification to avoid pulling from empty inputs. * * =a PrioSched, StrideSched, DRRSched, RoundRobinSwitch, SimpleRoundRobinSched */class RRSched : public Element { public:    RRSched();    ~RRSched();    const char *class_name() const	{ return "RoundRobinSched"; }    const char *port_count() const	{ return "-/1"; }    const char *processing() const	{ return PULL; }    const char *flags() const		{ return "S0"; }    int initialize(ErrorHandler *);    void cleanup(CleanupStage);    Packet *pull(int port);  private:    int _next;    NotifierSignal *_signals;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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