Versions Compared

Key

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

...

Declaring a variable as volatile or correctly synchronizing the code guarantees that 64-bit primitive long and double variables are accessed atomically. (For more information on sharing long and double variables among multiple threads, see CON05 VNA05-J. Ensure atomicity when reading and writing 64-bit values.)

Noncompliant Code Example (Non-volatile Flag)

...