mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
修改mempool使用rt_list_for_each宏进行遍历
This commit is contained in:
1 parent
ae1fdc70f0
commit
770cc2ffeb
1 file changed
+1
-1
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user