The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: C Facchini <c.facch...@gmail.com>
Date: Fri, 11 Sep 2009 07:18:56 -0700 (PDT)
Local: Fri, Sep 11 2009 10:18 am
Subject: Re: On callbacks
Dear Craig,
first of all, thank you very much for the thorough and insightful
> [snip]
I was able to get there. Anyway, before reading your explanation I
> TcpSocketImpl::m_cWnd > Now, go and look in tcp-socket-impl.h for the declaration of this variable.
couldn't get from there on. > [...] in ./core/traced-value.h [...]
It didn't occur to me that changes happen only when the variable *is
> You will find that the way these things work is to overload the operators > that cause the value to be changed. So you look for the = operator. If you > look there [...] you will find a call to Set() actually changed*. And the variable is changed by means of =, ++, +=, and so on. In fact, all those operators contain a call to the Set method. To be honest, I still don't get the motivations behind the macro
> One thing to point out is that the trace hook will only be called if the new
Is it because tracking a variable on a regular time basis is more
> value is different than the old value. This sometimes surprises people. difficult in discrete event simulators (and doesn't add anything)? > So, in the case of TracedValue<uint32_t>, the T becomes int32_t and you have
thanks to the conversion operator:
operator T () const { return m_v; } > int32_t v
Definitely non trivial, at least for my programming skills.
> int32_t m_v > So m_cb is calling (via an overloaded operator () ) a method that takes two
Again thanks for taking the time to write such a clear explanation. Regards,
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||