You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Tehieh That while loop is an infinite loop in that case. You need to be aware that in native_posix, code executes in 0 simulated time. So the code calls k_yield(), there is nothing to yield to, and continues looping, all in zero time.
You need to do something that causes it to spend time on that while loop. For example a k_busy_wait(some_time);
Describe the bug
I have the following code built to run as a native_posix application:
The code stops on the
k_msleep(10);
and has the following output:Expected behavior
The code reaches the line to
std::cout << "Exiting." << std::endl;
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: