Quote:
|
Originally Posted by Kevin Watson
I'd like to point out two things:
You're spending quite a bit of effort in trying to poke holes in my example code. If you don't know that the 'volatile' keyword is indeed necessary, we shouldn't be having this exchange.
-Kevin
|
Whoa there Kevin! I think that your example code is a
great contribution to the community, and I refer to it as such.
I am not trying to poke holes in it at all... I only pointed out
that the hazard exists, and can be run into depending on how,
and how often, you read the counter.