Upate some comments

This commit is contained in:
Gregory Nutt 2017-05-11 13:15:31 -06:00
parent 41680d376d
commit ba12817f9c
2 changed files with 6 additions and 2 deletions

View File

@ -60,8 +60,8 @@ int pthread_cancel(pthread_t thread)
if (thread == 0)
{
/* pid == 0 is the IDLE task. Callers cannot cancel the
* IDLE task.
/* pid == 0 is the IDLE task (in a single CPU configuration). Callers
* cannot cancel the IDLE task.
*/
return ESRCH;

View File

@ -84,6 +84,10 @@ bool sched_idletask(void)
* (1) It always lies at the end of the task list,
* (2) It always has priority zero, and
* (3) It should have the TCB_FLAG_CPU_LOCKED flag set.
*
* In the non-SMP case, the IDLE task will also have PID=0, but that
* is not a portable test because there are multiple IDLE tasks with
* different PIDs in the SMP configuration.
*/
return (rtcb->flink == NULL);