summaryrefslogtreecommitdiff
path: root/src/SConscript
diff options
context:
space:
mode:
authorTm-C-mT <[email protected]>2025-11-17 10:00:30 +0800
committerR b b666 <[email protected]>2025-11-19 16:15:47 +0800
commit9308564a920c99f31edd747d118c406192537578 (patch)
tree65a18c418b13fc58bc2195939ffe6f912fba3ced /src/SConscript
parent45f2246f73183e835732b8bf6e0c631ecb53bb8d (diff)
[utest]: Modify the utest logic for thread allocation of idle harts
Currently, this utest cannot determine whether threads are evenly distributed across idle harts by observing the result of list_thread(). This is because the presence of rt_thread_delay(5); causes all other threads to be in the suspended state when thread information is printed. For example, if RT_CPUS_NR=4, T0 executes list_thread() to print information, while T1~T3 are in hibernation and thus it is impossible to observe which hart they are running on. Solution:Here, the completion judgment condition has been modified. For example, when RT_CPUS_NR=4, only RT_CPUS_NR-1 threads will be created (i.e., T0 to T2), because running the utest occupies one hart. The execution is judged as completed when finish_flag=0x0007, and the thread running the utest will call list_thread() to print the information. Observe whether T0 to T2 are running on different harts simultaneously. Signed-off-by: Mengchen Teng <[email protected]>
Diffstat (limited to 'src/SConscript')
0 files changed, 0 insertions, 0 deletions