On 05/09/2012 01:04 PM, Marek Lindner wrote:
On Tuesday, May 08, 2012 22:18:34 Matthias Schiffer wrote: How the rcu replace / update mechanism works is pretty clear to me. My question geared towards our own code base. At which point would you use this rcu update ? Every time an element in the hash is modified ?
Yes, my idea is to use this whenever a new packet is inserted into the vis hash to ensure the vis data a reader sees is always as consistant as possible. I know it wouldn't be fatal for the vis if a packet is missing from the data sometimes, but in my opinion a clean update is nicer :)
Matthias