tests: fix io-stream when built with optimizations
In construct like "while (foo);" when foo is modified outside of the current thread, the variable should be declared volatile to suggest the compiler to read its value without making code optimization.
Showing
Please register or sign in to comment