Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The data race can be disabled by declaring the data to be volatile, because the volatile keyword forces the compiler to not produce two reads of the data.However However, this violates CON02-C. Do not use volatile as a synchronization primitive.

...