mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
修改mempool使用rt_list_for_each宏进行遍历
This commit is contained in:
@@ -691,7 +691,7 @@ long list_mempool(void)
|
|||||||
mp = (struct rt_mempool *)obj;
|
mp = (struct rt_mempool *)obj;
|
||||||
|
|
||||||
suspend_thread_count = 0;
|
suspend_thread_count = 0;
|
||||||
for (node = mp->suspend_thread.next; node != &mp->suspend_thread; node = node->next)
|
rt_list_for_each(node, &mp->suspend_thread)
|
||||||
{
|
{
|
||||||
suspend_thread_count++;
|
suspend_thread_count++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user