Is there a situation where a std::atomic<T> should be marked as volatile?

113 Views Asked by At

What would be a scenario where you would want to mark std::atomic<T> or std::atomic_flag as volatile (if there is one)?

What about a std::atomic_flag that's used in an interrupt handler? Does that need to be marked as volatile?

0

There are 0 best solutions below