summaryrefslogtreecommitdiff
path: root/nuttx/sched/task_delete.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-23 16:49:15 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-23 16:49:15 +0000
commit782a98407637ecdf9afa27d99cd178d1c75db4d3 (patch)
tree8db7dff83d22e1007ac3aba5ea1b1542bff9f668 /nuttx/sched/task_delete.c
parent68bc7cefbd11c4dbeca86fb64fac3466dd4f5b69 (diff)
downloadpx4-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/task_delete.c')
-rw-r--r--nuttx/sched/task_delete.c7
1 files changed, 7 insertions, 0 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);