[Ns-developers] SingleEvent and EventCollector
gjcarneiro at gmail.com
Mon Jul 30 02:45:23 PDT 2007
On 30/07/07, Tom Henderson <tomh at tomh.org> wrote:
> Gustavo Carneiro wrote:
> > Hello. I've added two new classes to
> > http://code.nsnam.org/gjc/ns-3-olsr-support/
> > SingleEvent:
> > Used to track a single event at a time. Cancels the underlying event in
> > destructor, so that we never get accidental callbacks to a destroyed
> > (as long as we keep the SingleEvent as a member of such object)
> > This should more or less replace Timer.
> Do you envision that a class Timer will subclass or wrap this object, or
> will class Timer be a typedef of SingleEvent, or will users declare a
> SingleEvent when they want a timer? I see the current OLSR code still
> uses class Timer.
SingleEvent really replaces Timer.
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert
More information about the Ns-developers