Skip to content
Snippets Groups Projects
Commit 1cf11e18 authored by Masayuki Ishikawa's avatar Masayuki Ishikawa Committed by Gregory Nutt
Browse files

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: default avatarGregory Nutt <gnutt@nuttx.org>
parents 9417bfde 99b944fb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment