[Click] Notifiers
Eddie Kohler
kohler at cs.ucla.edu
Mon Aug 27 18:47:20 EDT 2007
Hi David,
You also must update your element's cast() function, so that someone
looking for an "empty" or "full" notifier (whichever is appropriate)
will find your ActiveNotifier. The relevant constants are
Notifier::FULL_NOTIFIER and Notifier::EMPTY_NOTIFIER. Check out the
versions in elements/standard/notifierqueue.cc and fullnotequeue.cc for
examples.
Eddie
David Biot wrote:
> I wrote an element that acts as a special buffer. It has multiple push
> inputs and a pull output. I want to add notifications to make sure the CPU
> isn't constant at 100% when the element contains no packets (I’m not using
> polling drivers).
>
> What are all the requirements to make sure the notification works?
>
> I already have an Activenotifier defined in my element. It is initialised at
> configuration, wake() and sleep() are called when needed.
>
> What else do I need to add to make sure it works?
>
> Greetings,
> David Biot
>
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.10.22/923 - Release Date: 27/07/2007
> 18:01
>
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list