[Click] ELEMENT_MT_SAFE
Beyers Cronje
bcronje at gmail.com
Mon May 9 09:27:36 EDT 2005
Hi Dagang,
ELEMENT_MT_SAFE means the element should run safely in a Click
multi-threaded configuration.
As for your second question, to make an element multithread safe you
have to implement a locking scheme using either spinlocks or rwlocks,
or use structures per CPU as CPUQueue does. Have a look at
http://pdos.csail.mit.edu/papers/click:usenix01/ for overview of SMP
Click.
Beyers
On 5/9/05, Dagang LI <dagang.li at student.kuleuven.ac.be> wrote:
> Hello,
>
> I have a very basic question:
> What does ELEMENT_MT_SAFE() mean at the end of the .cc files for some
> elements?
> and an extended one:
> Is there a comprehensive list and explanation on it and the alikes?
> Many thanks!
>
> Kind regards,
> Dagang
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
More information about the click
mailing list