sched/tasklist: replace task status list with macro definition

replace to macro will help to extend the scheduling implementation

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an
2024-03-19 12:33:08 +08:00
committed by Masayuki Ishikawa
parent ad0efd04ee
commit 306c1c0b7d
21 changed files with 69 additions and 51 deletions
+1 -1
View File
@@ -563,7 +563,7 @@ void leave_critical_section(irqstate_t flags)
* section then.
*/
if (g_pendingtasks.head != NULL &&
if (list_pendingtasks()->head != NULL &&
!nxsched_islocked_global())
{
/* Release any ready-to-run tasks that have collected