3 ms·
Isn't this already expressible with something like a yield statement between the two atomics? If you need it - write it down! I can't guess your intentions as
by chrisseaton 5y ago
Isn't this already expressible with something like a yield statement between the two atomics?
If you need it - write it down! I can't guess your intentions as a compiler author!
- Dylan16807 5y agoA yield might be way too slow. And sure, there should be a way to signal intentions. By my point is that there is a reasonable way to describe what certain people would expect by default.
- spacechild1 5y ago“volatile std::atomic“ also works and is more clear, IMO.