Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: wordsmithing, mostly use of safe publication in place of visibility

...

  • flush cached registers
  • reload any values
  • provide any happens-before relationships when execution resumes

is incorrect and is consequently disallowed. Programs must ensure that communication between threads has proper synchronization, happens-before, and

...

safe publication semantics.

Noncompliant Code Example (sleep())

...