mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
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:
+4
-2
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user