3 ms·
The best way to achieve this without changing the code would be to modify the variable to be `volatile`. That way you tell the compiler that you actually care a
by tsimionescu 5y ago
The best way to achieve this without changing the code would be to modify the variable to be `volatile`. That way you tell the compiler that you actually care about it reading/writing it from/to memory every time it is read/written.