git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1593 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
4d832fdf1c
commit
60f8ed2a0b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue