mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
Cosmetic update to comments.
This commit is contained in:
@@ -390,13 +390,15 @@ int task_spawn(FAR pid_t *pid, FAR const char *name, main_t entry,
|
|||||||
return -ret;
|
return -ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_WAITPID
|
||||||
/* Disable pre-emption so that the proxy does not run until waitpid
|
/* Disable pre-emption so that the proxy does not run until waitpid
|
||||||
* is called. This is probably unnecessary since the task_spawn_proxy has
|
* is called. This is probably unnecessary since the task_spawn_proxy has
|
||||||
* the same priority as this thread; it should be schedule behind this
|
* the same priority as this thread; it should be schedule behind this
|
||||||
* task in the ready-to-run list.
|
* task in the ready-to-run list.
|
||||||
|
*
|
||||||
|
* REVISIT: This will may not have the desired effect in SMP mode.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_WAITPID
|
|
||||||
sched_lock();
|
sched_lock();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user