Fixed a bug in Nil chSemSignalI() and a similar function in its OSAL.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6581 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2013-12-29 09:59:18 +00:00
parent 976bc3e3fc
commit 3ecd613b00
2 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ void osalThreadDequeueNextI(threads_queue_t *tqp, msg_t msg) {
while (true) {
/* Is this thread waiting on this semaphore?*/
if (tr->u1.semp == sp) {
sp->cnt++;
chDbgAssert(NIL_THD_IS_WTSEM(tr), "not waiting");

View File

@ -566,6 +566,7 @@ void chSemSignalI(semaphore_t *sp) {
while (true) {
/* Is this thread waiting on this semaphore?*/
if (tr->u1.semp == sp) {
sp->cnt++;
chDbgAssert(NIL_THD_IS_WTSEM(tr), "not waiting");