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:
parent
b765d17818
commit
2aab4d3c3a
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue