staticthreadsched.hh

来自「COPE the first practical network coding 」· HH 代码 · 共 42 行

HH
42
字号
// -*- c-basic-offset: 4 -*-#ifndef STATICTHREADSCHED_HH#define STATICTHREADSCHED_HH/* * =c * StaticThreadSched(ELEMENT THREAD, ...) * =s information * specifies element and thread scheduling parameters * =io * None * =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 */#include <click/element.hh>#include <click/standard/threadsched.hh>class StaticThreadSched : public Element, public ThreadSched { public:    StaticThreadSched();    ~StaticThreadSched();      const char *class_name() const	{ return "StaticThreadSched"; }      int configure(Vector<String> &, ErrorHandler *);    int initial_thread_preference(Task *, bool);      private:    Vector<int> _thread_preferences;    ThreadSched *_next_thread_sched;};#endif

⌨️ 快捷键说明

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