spinlockinfo.hh

来自「Click is a modular router toolkit. To us」· HH 代码 · 共 39 行

HH
39
字号
#ifndef CLICK_SPINLOCKINFO_HH#define CLICK_SPINLOCKINFO_HH#include <click/element.hh>#include <click/vector.hh>#include <click/hashtable.hh>#include <click/sync.hh>CLICK_DECLS/* * =c * SpinlockInfo(NAME, ...) * =s threads * specifies names of spinlocks * =d * * Lets you use mnemonic names for spinlocks. Each name names a spinlock that * the SpinlockAcquire and SpinlockRelease elements can use to reference a * spinlock. * =a SpinlockAcquire, SpinlockRelease */class SpinlockInfo : public Element { public:    SpinlockInfo();    ~SpinlockInfo();    const char *class_name() const	{ return "SpinlockInfo"; }    int configure_phase() const		{ return CONFIGURE_PHASE_INFO; }    int configure(Vector<String> &, ErrorHandler *);  private:    Vector<Spinlock> _spinlocks;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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