git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1593 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2010-02-12 18:55:06 +00:00
parent 4d832fdf1c
commit 60f8ed2a0b
1 changed files with 2 additions and 0 deletions

View File

@ -427,7 +427,9 @@ msg_t chThdWait(Thread *tp) {
chSysLock();
chDbgAssert(tp != currp, "chThdWait(), #1", "waiting self");
#if CH_USE_DYNAMIC
chDbgAssert(tp->p_refs > 0, "chThdWait(), #2", "not referenced");
#endif
if (tp->p_state != THD_STATE_FINAL) {
list_insert(currp, &tp->p_waiting);
chSchGoSleepS(THD_STATE_WTEXIT);