mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
Miscellaneous fixes from astyle tool.
This commit is contained in:
@@ -100,7 +100,7 @@
|
|||||||
|
|
||||||
/* This is the list of all tasks that are ready to run. This is a
|
/* This is the list of all tasks that are ready to run. This is a
|
||||||
* prioritized list with head of the list holding the highest priority
|
* prioritized list with head of the list holding the highest priority
|
||||||
* (unassigned) task. In the non-SMP cae, the head of this list is the
|
* (unassigned) task. In the non-SMP case, the head of this list is the
|
||||||
* currently active task and the tail of this list, the lowest priority
|
* currently active task and the tail of this list, the lowest priority
|
||||||
* task, is always the IDLE task.
|
* task, is always the IDLE task.
|
||||||
*/
|
*/
|
||||||
@@ -109,7 +109,7 @@ volatile dq_queue_t g_readytorun;
|
|||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
/* In order to support SMP, the function of the g_readytorun list changes,
|
/* In order to support SMP, the function of the g_readytorun list changes,
|
||||||
* The g_readytorun is still used but in the SMP cae it will contain only:
|
* The g_readytorun is still used but in the SMP case it will contain only:
|
||||||
*
|
*
|
||||||
* - Only tasks/threads that are eligible to run, but not currently running,
|
* - Only tasks/threads that are eligible to run, but not currently running,
|
||||||
* and
|
* and
|
||||||
|
|||||||
+1
-1
@@ -152,7 +152,7 @@ struct tasklist_s
|
|||||||
|
|
||||||
/* This is the list of all tasks that are ready to run. This is a
|
/* This is the list of all tasks that are ready to run. This is a
|
||||||
* prioritized list with head of the list holding the highest priority
|
* prioritized list with head of the list holding the highest priority
|
||||||
* (unassigned) task. In the non-SMP cae, the head of this list is the
|
* (unassigned) task. In the non-SMP case, the head of this list is the
|
||||||
* currently active task and the tail of this list, the lowest priority
|
* currently active task and the tail of this list, the lowest priority
|
||||||
* task, is always the IDLE task.
|
* task, is always the IDLE task.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ int waitid(idtype_t idtype, id_t id, FAR siginfo_t *info, int options)
|
|||||||
#ifdef HAVE_GROUP_MEMBERS
|
#ifdef HAVE_GROUP_MEMBERS
|
||||||
if (ctcb == NULL || ctcb->group->tg_pgid != rtcb->group->tg_gid)
|
if (ctcb == NULL || ctcb->group->tg_pgid != rtcb->group->tg_gid)
|
||||||
#else
|
#else
|
||||||
if (ctcb == NULL || ctcb->group>tg_ppid != rtcb->pid)
|
if (ctcb == NULL || ctcb->group->tg_ppid != rtcb->pid)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
errcode = ECHILD;
|
errcode = ECHILD;
|
||||||
|
|||||||
@@ -1189,7 +1189,11 @@ int sem_nfreeholders(void)
|
|||||||
FAR struct semholder_s *pholder;
|
FAR struct semholder_s *pholder;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
for (pholder = g_freeholders, n = 0; pholder; pholder = pholder->flink) n++;
|
for (pholder = g_freeholders, n = 0; pholder; pholder = pholder->flink)
|
||||||
|
{
|
||||||
|
n++;
|
||||||
|
}
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user