<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/src/utest/smp/smp_thread_preemption_tc.c, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/src/utest/smp/smp_thread_preemption_tc.c?h=master</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/src/utest/smp/smp_thread_preemption_tc.c?h=master'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2025-12-10T09:06:41Z</updated>
<entry>
<title>[docs][utest]:Add comments for smp_thread_preemption</title>
<updated>2025-12-10T09:06:41Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-12-09T13:57:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d9ca9c449b7aaa48a26e2860f8755d5a18fc94e7'/>
<id>urn:sha1:d9ca9c449b7aaa48a26e2860f8755d5a18fc94e7</id>
<content type='text'>
Add comments for smp_thread_preemption.

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>[utest]:Modify the execution logic of smp_thread_preemptions</title>
<updated>2025-12-10T09:06:41Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-12-02T10:16:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d56d3d95d508950b40bb646685ae8f583de1f7e9'/>
<id>urn:sha1:d56d3d95d508950b40bb646685ae8f583de1f7e9</id>
<content type='text'>
Currently, the print information of this test case fails to demonstrate that
the high-priority thread has preempted the low-priority thread. This is because
when the high-priority thread prints the thread list, there is no information
about the low-priority thread (tlow), as tlow has already completed execution
and been destroyed. Therefore, the current execution logic cannot confirm the
successful completion of the preemption operation.

Solution: After the low-priority thread (tlow) releases the lock, add a busy-wait
loop while(!finish_flag);. At this point, when the high-priority thread (thigh)
prints the thread list information, tlow can be observed in the ready state, indicating
that it has been preempted by thigh.

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>utest: core: unify case names</title>
<updated>2025-09-26T01:59:05Z</updated>
<author>
<name>Chen Wang</name>
<email>unicorn_wang@outlook.com</email>
</author>
<published>2025-09-22T07:32:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=adc3e2ccc573638fca85973dd00ac5096f4af201'/>
<id>urn:sha1:adc3e2ccc573638fca85973dd00ac5096f4af201</id>
<content type='text'>
Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
</content>
</entry>
<entry>
<title>utest: move core tesetcases under to directiry "src"</title>
<updated>2025-09-26T01:59:05Z</updated>
<author>
<name>Chen Wang</name>
<email>unicorn_wang@outlook.com</email>
</author>
<published>2025-09-22T06:45:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=6e51a8405ff220424fe7d435958a787dba621a35'/>
<id>urn:sha1:6e51a8405ff220424fe7d435958a787dba621a35</id>
<content type='text'>
Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
</content>
</entry>
</feed>
