[Click] AverageCounter and 64bits
Beyers Cronje
bcronje at gmail.com
Wed Jan 18 03:36:36 EST 2012
A 64bit atomic_couter_t would be great from my point of view.
On Wed, Jan 18, 2012 at 2:26 AM, rchertov <rchertov at cs.ucsb.edu> wrote:
> So at some point Eddie introduced counter_t type, which is either 32bit
> or 64 bit depending on the machine architecture. However,
> AverageCounter still uses atomic_uint32_t. On a 10GE network, byte_rate
> wraps around quite rapidly, so a 64bit value would be useful. I suppose
> one approach would be create atomic_counter_t which is either 32 or 64
> bit, or the alternate approach would be to use counter_t along with a
> lock. Eddie which version would you prefer?
>
> Roman
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
More information about the click
mailing list