Unmatched sched_lock()/sched_unlock()

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@172 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2007-03-29 13:32:13 +00:00
parent b765d17818
commit 2aab4d3c3a
1 changed files with 4 additions and 2 deletions

View File

@ -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)
{