I'm surprised that this code works for you, most people would expect the data to be read after one or at a deterministic number of calls of ReadData(). How do you know when a new value was read?
I'm surprised that this code works for you, most people would expect the data to be read after one or at a deterministic number of calls of ReadData(). How do you know when a new value was read?