diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-29 13:32:13 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-29 13:32:13 +0000 |
commit | 70dec469f5023415a348e3267e53b4eff1e2cb37 (patch) | |
tree | baeafbcf44e3f5ca29e5dcfa74cb4995ed525010 | |
parent | 8f1aaf4a5e18a726b1faac47a1e6a6c1aa4f9b23 (diff) | |
download | px4-nuttx-70dec469f5023415a348e3267e53b4eff1e2cb37.tar.gz px4-nuttx-70dec469f5023415a348e3267e53b4eff1e2cb37.tar.bz2 px4-nuttx-70dec469f5023415a348e3267e53b4eff1e2cb37.zip |
Unmatched sched_lock()/sched_unlock()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@172 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/sched/task_delete.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/sched/task_delete.c b/nuttx/sched/task_delete.c index 4f463bd60..86a796ab7 100644 --- a/nuttx/sched/task_delete.c +++ b/nuttx/sched/task_delete.c @@ -118,10 +118,12 @@ STATUS task_delete(pid_t pid) /* Make sure the task does not become ready-to-run while * we are futzing with its TCB by locking ourselves as the * executing task. - * - * Frist, find for the TCB associated with matching pid */ + sched_lock(); + + /* Find for the TCB associated with matching pid */ + dtcb = sched_gettcb(pid); if (!dtcb) { |