You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/10/28 09:18:38 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a diff in pull request #7459: nuttx/sched: usd pid to check idle task

pkarashchenko commented on code in PR #7459:
URL: https://github.com/apache/incubator-nuttx/pull/7459#discussion_r1007842564


##########
sched/sched/sched.h:
##########
@@ -56,6 +56,8 @@
 #  define this_task()            (current_task(this_cpu()))
 #endif
 
+#define is_idle_task(t)          ((t)->pid == this_cpu())

Review Comment:
   Why we compare against `this_cpu()` and not against `IDLE_PROCESS_ID`. Does this mean that we have idle task per core in SMP mode?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org