mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 04:33:34 +08:00
Add a start hook that can be setup to call a function in the context of a new thread before the new threads main() has been called.
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5571 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -4040,3 +4040,9 @@
|
||||
Move stream data from the TCB to the task group structure.
|
||||
* net/, sched/, and include/nuttx/net/net.h: Move socket data
|
||||
from the TCB to the task group structure.
|
||||
* sched/task_starthook.c, sched/task_start.c, and include/nuttx/sched.h:
|
||||
Add a task start hook that will be called before the task main
|
||||
is started. This can be used to schedule C++ constructors to run
|
||||
automatically in the context of the new task.
|
||||
* binfmt/binfmt_execmodule: Execute constructors as a start hook.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user