diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-25 17:23:38 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-25 17:23:38 +0000 |
commit | f2933cc4b65836a712f1ab996512999959a8c48a (patch) | |
tree | dd7f8afd13defdb90a4a8ffaba352f90efc3ec3a /nuttx/sched/sched_releasetcb.c | |
parent | 1520663dd52c25496f285eb2e08077318c600759 (diff) | |
download | px4-nuttx-f2933cc4b65836a712f1ab996512999959a8c48a.tar.gz px4-nuttx-f2933cc4b65836a712f1ab996512999959a8c48a.tar.bz2 px4-nuttx-f2933cc4b65836a712f1ab996512999959a8c48a.zip |
Add framework to support task groups
git-svn-id: svn://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.c | 7 |
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); |