3 ms·
> If they have some hard minimum they require, then what do they expect me to do? Completely abstract from the system scheduler to make it happen? What if they
by Dylan16807 5y ago
> If they have some hard minimum they require, then what do they expect me to do? Completely abstract from the system scheduler to make it happen?
What if they say the hard minimum is "occasionally"?
They're not holding you responsible for the scheduler, they just want you to leave it as possible. (and not be deliberately malicious, just in case that needs to be said)
- chrisseaton 5y agoIsn'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.