tests: kernel: fix thread_runtime_stats compiler optimization issue
Compilers may optimize away empty while(1){} loops in helper threads,
causing the idle thread to run instead and breaking runtime statistics
measurement.
Use volatile condition variable to prevent optimization.
Signed-off-by:
Mohamed Moawad <moawad@synopsys.com>
Loading
Please sign in to comment