3 ms·
No. Read the spec. There is no deadline for atomics to be visible. What is true is that some operations have happens-before ordering, and if a store happens-bef
by wbl 10y ago
No. Read the spec. There is no deadline for atomics to be visible. What is true is that some operations have happens-before ordering, and if a store happens-before a load, the load will see the result of the store.
- gpderetta 10y agoDid you reply to the wrong post? My post was only about ordering. Still the C++ spec has wording about making stores visible in a reasonable time. The wording is non-normative as they run out of time (ah!) while trying to come up with a more formal (and implementable) specification. edit: oh, I see I wrote 'default visibility' instead of 'default ordering'.