修改mempool使用rt_list_for_each宏进行遍历
This commit is contained in:
parent
ae1fdc70f0
commit
770cc2ffeb
@ -691,7 +691,7 @@ long list_mempool(void)
|
||||
mp = (struct rt_mempool *)obj;
|
||||
|
||||
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++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user