Upate some comments
This commit is contained in:
parent
41680d376d
commit
ba12817f9c
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user