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

📄 staticthreadsched.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 STATICTHREADSCHED_HH#define STATICTHREADSCHED_HH#include <click/element.hh>#include <click/standard/threadsched.hh>CLICK_DECLS/* * =c * StaticThreadSched(ELEMENT THREAD, ...) * =s threads * specifies element and thread scheduling parameters * =d * Statically binds elements to threads. If more than one StaticThreadSched * is specified, they will all run. The one that runs later may override an * earlier run. * =a * ThreadMonitor, BalancedThreadSched */class StaticThreadSched : public Element, public ThreadSched { public:    StaticThreadSched();    ~StaticThreadSched();    const char *class_name() const	{ return "StaticThreadSched"; }    int configure(Vector<String> &, ErrorHandler *);    int initial_home_thread_id(Task *, bool);  private:    Vector<int> _thread_preferences;    ThreadSched *_next_thread_sched;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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