修改mempool使用rt_list_for_each宏进行遍历

This commit is contained in:
shaojinchun 2019-09-17 11:02:34 +08:00
parent ae1fdc70f0
commit 770cc2ffeb

View File

@ -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++;
}