mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 14:33:33 +08:00
Add on_exit(); Re-order some logic in the task shutdown sequence. Sometimes some complex logic needs to execute when closing file descriptors and this needs to happen early while the task is still healthy
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4354 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -2416,3 +2416,9 @@
|
||||
This upsets C++ if usb.h is included. 'class' -> 'classid' in this header
|
||||
file and all places that referenced 'class'
|
||||
* drivers/usbdev/usbmsc.c: Fixed some backward conditional compilation.
|
||||
* sched/on_exit.c: Add support for the on_exit() function.,
|
||||
* sched/exit.c, task_exithook.c, task_delete.c, sched_releasetcb.c: Move
|
||||
the logic that closes file descriptors sooner in the task shutdown sequence.
|
||||
When drivers are closed, they may need to do things that require a fully
|
||||
up-and-running task. Some things cannot be done later when the task is
|
||||
crippled.
|
||||
|
||||
Reference in New Issue
Block a user