mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
Some cosmetic renaming
This commit is contained in:
@@ -1206,7 +1206,7 @@ Where <subdir> is one of the following:
|
|||||||
-CONFIG_EXAMPLES_USBMSC_DEVPATH1="/dev/mmcsd0"
|
-CONFIG_EXAMPLES_USBMSC_DEVPATH1="/dev/mmcsd0"
|
||||||
+CONFIG_EXAMPLES_USBMSC_DEVPATH1="/dev/ram0"
|
+CONFIG_EXAMPLES_USBMSC_DEVPATH1="/dev/ram0"
|
||||||
|
|
||||||
2. Changes to nuttx/.config.
|
2. Changes to apps/.config.
|
||||||
|
|
||||||
a) Enable building of the examples/usbstorage:
|
a) Enable building of the examples/usbstorage:
|
||||||
|
|
||||||
|
|||||||
@@ -417,15 +417,15 @@ static inline void task_sigchild(FAR struct tcb_s *ptcb,
|
|||||||
#endif /* CONFIG_SCHED_HAVE_PARENT */
|
#endif /* CONFIG_SCHED_HAVE_PARENT */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: task_leavegroup
|
* Name: task_signalparent
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Send the SIGCHILD signal to the parent thread
|
* Send the SIGCHILD signal to the parent task group
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_HAVE_PARENT
|
#ifdef CONFIG_SCHED_HAVE_PARENT
|
||||||
static inline void task_leavegroup(FAR struct tcb_s *ctcb, int status)
|
static inline void task_signalparent(FAR struct tcb_s *ctcb, int status)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_GROUP_MEMBERS
|
#ifdef HAVE_GROUP_MEMBERS
|
||||||
DEBUGASSERT(ctcb && ctcb->group);
|
DEBUGASSERT(ctcb && ctcb->group);
|
||||||
@@ -446,7 +446,7 @@ static inline void task_leavegroup(FAR struct tcb_s *ctcb, int status)
|
|||||||
sched_lock();
|
sched_lock();
|
||||||
|
|
||||||
/* Get the TCB of the receiving, parent task. We do this early to
|
/* Get the TCB of the receiving, parent task. We do this early to
|
||||||
* handle multiple calls to task_leavegroup. ctcb->ppid is set to an
|
* handle multiple calls to task_signalparent. ctcb->ppid is set to an
|
||||||
* invalid value below and the following call will fail if we are
|
* invalid value below and the following call will fail if we are
|
||||||
* called again.
|
* called again.
|
||||||
*/
|
*/
|
||||||
@@ -471,7 +471,7 @@ static inline void task_leavegroup(FAR struct tcb_s *ctcb, int status)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
# define task_leavegroup(ctcb,status)
|
# define task_signalparent(ctcb,status)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -626,6 +626,7 @@ void task_exithook(FAR struct tcb_s *tcb, int status, bool nonblocking)
|
|||||||
* the exit functions *not* be called.
|
* the exit functions *not* be called.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(CONFIG_SCHED_ATEXIT) || defined(CONFIG_SCHED_ONEXIT)
|
||||||
if (!nonblocking)
|
if (!nonblocking)
|
||||||
{
|
{
|
||||||
task_atexit(tcb);
|
task_atexit(tcb);
|
||||||
@@ -634,6 +635,7 @@ void task_exithook(FAR struct tcb_s *tcb, int status, bool nonblocking)
|
|||||||
|
|
||||||
task_onexit(tcb, status);
|
task_onexit(tcb, status);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* If the task was terminated by another task, it may be in an unknown
|
/* If the task was terminated by another task, it may be in an unknown
|
||||||
* state. Make some feeble effort to recover the state.
|
* state. Make some feeble effort to recover the state.
|
||||||
@@ -641,9 +643,9 @@ void task_exithook(FAR struct tcb_s *tcb, int status, bool nonblocking)
|
|||||||
|
|
||||||
task_recover(tcb);
|
task_recover(tcb);
|
||||||
|
|
||||||
/* Leave the task group */
|
/* Send the SIGCHILD signal to the parent task group */
|
||||||
|
|
||||||
task_leavegroup(tcb, status);
|
task_signalparent(tcb, status);
|
||||||
|
|
||||||
/* Wakeup any tasks waiting for this task to exit */
|
/* Wakeup any tasks waiting for this task to exit */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user