sched/semaphore: Add ASSERT(false) in nxsem_post() if no waiting task is found.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
9417bfde0e
commit
99b944fb6e
@ -165,6 +165,12 @@ int nxsem_post(FAR sem_t *sem)
|
||||
|
||||
up_unblock_task(stcb);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* This should not happen. */
|
||||
|
||||
ASSERT(false);
|
||||
}
|
||||
}
|
||||
|
||||
/* Check if we need to drop the priority of any threads holding
|
||||
|
Loading…
x
Reference in New Issue
Block a user