[Click] CLICK_BYTE_ORDER

Beyers Cronje bcronje at gmail.com
Thu Aug 3 08:45:01 EDT 2006


Hi Koen

And atomic? When do you have 'synchronization'? e.g. in
> elements/ip/checkipheader.hh:
> -for _offset they just use unsigned
> -and for _drops they use atomic_uint32_t
> What's the difference? (why use unsigned for one and atomic for the
> other?)


_offset gets set once during startup and never changes. _drops are mutable
and during SMP Click operations you require synchronization.

In short, if you are using standard Click then you never need worry about
atomic ints, ONLY when you pln to use SMP Click.

Beyers


More information about the click mailing list