mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-04 01:31:37 +08:00
Fix STM32 F2/F4 SDIO clocking; Clean-up files in sched/ directory
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4940 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -58,11 +58,11 @@
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Function: sched_setuppthreadfiles
|
||||
* Name: sched_setuppthreadfiles
|
||||
*
|
||||
* Description:
|
||||
* Configure a newly allocated TCB so that it will inherit
|
||||
* file descriptors and streams from the parent pthread.
|
||||
* Configure a newly allocated TCB so that it will inherit file
|
||||
* descriptors and streams from the parent pthread.
|
||||
*
|
||||
* Parameters:
|
||||
* tcb - tcb of the new task.
|
||||
@@ -85,6 +85,16 @@ int sched_setuppthreadfiles(FAR _TCB *tcb)
|
||||
tcb->filelist = rtcb->filelist;
|
||||
files_addreflist(tcb->filelist);
|
||||
|
||||
#endif /* CONFIG_NFILE_DESCRIPTORS */
|
||||
|
||||
#if CONFIG_NSOCKET_DESCRIPTORS > 0
|
||||
/* The child thread inherits the parent socket descriptors */
|
||||
|
||||
tcb->sockets = rtcb->sockets;
|
||||
net_addreflist(tcb->sockets);
|
||||
|
||||
#endif /* CONFIG_NSOCKET_DESCRIPTORS */
|
||||
|
||||
#if CONFIG_NFILE_STREAMS > 0
|
||||
/* The child thread inherits the parent streams */
|
||||
|
||||
@@ -92,16 +102,6 @@ int sched_setuppthreadfiles(FAR _TCB *tcb)
|
||||
lib_addreflist(tcb->streams);
|
||||
|
||||
#endif /* CONFIG_NFILE_STREAMS */
|
||||
#endif /* CONFIG_NFILE_DESCRIPTORS */
|
||||
|
||||
#if CONFIG_NSOCKET_DESCRIPTORS > 0
|
||||
/* The child thread inherits the parent file descriptors */
|
||||
|
||||
tcb->sockets = rtcb->sockets;
|
||||
net_addreflist(tcb->sockets);
|
||||
|
||||
#endif /* CONFIG_NSOCKET_DESCRIPTORS */
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user