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:
Masayuki Ishikawa 2018-01-19 22:11:09 +09:00
parent 9417bfde0e
commit 99b944fb6e

View File

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