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
committed by Matt Thompson
parent 75b1844b7b
commit cd1641305a
+6
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