mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 04:58:28 +00:00
Merged in masayuki2009/nuttx.nuttx/nxsem_post_with_assert (pull request #577)
sched/semaphore: Add ASSERT(false) in nxsem_post() if no waiting task is found. Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
commit
1cf11e18fe
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue