On Mon, 2006-Jul-31 14:37:56 -0400, John Baldwin wrote: >On Friday 28 July 2006 17:01, Peter Jeremy wrote: >> This approach still requires the reader to loop with something like >> do { >> a.lo = counter.lo; >> a.hi = counter.hi; >> b.lo = counter.lo; >> b.hi = counter.hi; >> } while (a.hi != b.hi || a.lo > b.lo); >> to ensure that the reader doesn't read the middle of an update. > >Yes, but the idea here is that these stats are written to far more often than >read, so it's ok to pessimize the read case. We are in violent agreement here. My point was that the reader has to be aware of this requirement. -- Peter Jeremy
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:58 UTC