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

📄 msqueue.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
#ifndef CLICK_MSQUEUE_HH#define CLICK_MSQUEUE_HH#include "threadsafequeue.hh"CLICK_DECLS/* * =c * MSQueue * MSQueue(CAPACITY) * =deprecated ThreadSafeQueue * =s smpclick * stores packets in a FIFO queue * =d * Stores incoming packets in a multiple producer single consumer * first-in-first-out queue. Enqueue operations are synchronized, dequeue * operations are not. Drops incoming packets if the queue already holds * CAPACITY packets. The default for CAPACITY is 1000. * * =h length read-only * Returns the current number of packets in the queue. * =h dropd read-only * Returns the number of packets dropped by the queue so far. * =h capacity read/write * Returns or sets the queue's capacity. * =a Queue */class MSQueue : public ThreadSafeQueue { public:    MSQueue();    ~MSQueue();    const char *class_name() const		{ return "MSQueue"; }    void *cast(const char *);    int configure(Vector<String> &, ErrorHandler *);#if CLICK_LINUXMODULE && __i386__ && HAVE_INTEL_CPU    static void prefetch_packet(Packet *p);#endif};#if CLICK_LINUXMODULE && __i386__ && HAVE_INTEL_CPUinline voidMSQueue::prefetch_packet(Packet *p){  struct sk_buff *skb = p->skb();  asm volatile("prefetcht0 %0" : : "m" (skb->data));}#endifCLICK_ENDDECLS#endif

⌨️ 快捷键说明

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