aboutsummaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_releasetcb.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-25 17:23:38 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-25 17:23:38 +0000
commite95efd5d2a08dcb62c8c635089e4fe146965db45 (patch)
treedd7f8afd13defdb90a4a8ffaba352f90efc3ec3a /nuttx/sched/sched_releasetcb.c
parentb6472b58dcce32d4ab2051f13cef89a6f0296c28 (diff)
downloadpx4-firmware-e95efd5d2a08dcb62c8c635089e4fe146965db45.tar.gz
px4-firmware-e95efd5d2a08dcb62c8c635089e4fe146965db45.tar.bz2
px4-firmware-e95efd5d2a08dcb62c8c635089e4fe146965db45.zip
Add framework to support task groups
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5562 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sched_releasetcb.c')
-rw-r--r--nuttx/sched/sched_releasetcb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/sched/sched_releasetcb.c b/nuttx/sched/sched_releasetcb.c
index 0557c829b..50505f579 100644
--- a/nuttx/sched/sched_releasetcb.c
+++ b/nuttx/sched/sched_releasetcb.c
@@ -1,7 +1,7 @@
/************************************************************************
* sched/sched_releasetcb.c
*
- * Copyright (C) 2007, 2009, 2012 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2009, 2012-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -177,6 +177,11 @@ int sched_releasetcb(FAR _TCB *tcb)
ret = up_addrenv_release(tcb);
#endif
+ /* Leave the group (if we did not already leady in task_exithook.c) */
+
+#ifdef HAVE_TASK_GROUP
+ group_leave(tcb);
+#endif
/* And, finally, release the TCB itself */
sched_free(tcb);