diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-23 16:49:15 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-23 16:49:15 +0000 |
commit | 782a98407637ecdf9afa27d99cd178d1c75db4d3 (patch) | |
tree | 8db7dff83d22e1007ac3aba5ea1b1542bff9f668 /nuttx/sched | |
parent | 68bc7cefbd11c4dbeca86fb64fac3466dd4f5b69 (diff) | |
download | px4-nuttx-782a98407637ecdf9afa27d99cd178d1c75db4d3.tar.gz px4-nuttx-782a98407637ecdf9afa27d99cd178d1c75db4d3.tar.bz2 px4-nuttx-782a98407637ecdf9afa27d99cd178d1c75db4d3.zip |
Rename some USB device files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4645 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/task_delete.c | 7 | ||||
-rw-r--r-- | nuttx/sched/task_exithook.c | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/nuttx/sched/task_delete.c b/nuttx/sched/task_delete.c index e5244a0b8..5448260d5 100644 --- a/nuttx/sched/task_delete.c +++ b/nuttx/sched/task_delete.c @@ -179,6 +179,13 @@ int task_delete(pid_t pid) sched_unlock(); + /* Since all tasks pass through this function as the final step in their + * exit sequence, this is an appropriate place to inform any instrumentation + * layer that the task no longer exists. + */ + + sched_note_stop(tcb); + /* Deallocate its TCB */ sched_releasetcb(dtcb); diff --git a/nuttx/sched/task_exithook.c b/nuttx/sched/task_exithook.c index e160a1cb3..500129382 100644 --- a/nuttx/sched/task_exithook.c +++ b/nuttx/sched/task_exithook.c @@ -102,10 +102,6 @@ void task_exithook(FAR _TCB *tcb, int status) { - /* Inform the instrumentation layer that the task has stopped */ - - sched_note_stop(tcb); - /* If an exit function was registered, call it now before we do any un- * initialized. NOTE: In the case of task_delete(), the exit function * will *not* be called on the thread execution of the task being deleted! |