mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-08 10:42:31 +00:00
The idea behind this test is to race two CPUs against each other, validating that each is truly running simultaneously. But it just assumed that the other thread/cpu would start synchronously as soon as k_thread_create() returned. Normally, that works fine. But while debugging I added some code that was slowing down entry to the other thread (or maybe the return from k_thread_create() into the main thread) long enough to allow one thread to get a significant head start. That breaks the logic in the test and things were inexplicably "failing". Put a spin loop around the count so that the main thread can start counting to within the memory system's ability to inform it of the change from the other thread. Signed-off-by: Andy Ross <andrew.j.ross@intel.com> |
||
---|---|---|
.. | ||
src | ||
CMakeLists.txt | ||
prj.conf | ||
testcase.yaml |