Fixed bug 3411207
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3360 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
0886cac049
commit
5a3a608ad9
|
@ -353,6 +353,7 @@ void chThdExit(msg_t msg) {
|
||||||
REG_REMOVE(tp);
|
REG_REMOVE(tp);
|
||||||
#endif
|
#endif
|
||||||
chSchGoSleepS(THD_STATE_FINAL);
|
chSchGoSleepS(THD_STATE_FINAL);
|
||||||
|
chSysUnlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CH_USE_WAITEXIT || defined(__DOXYGEN__)
|
#if CH_USE_WAITEXIT || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -206,6 +206,7 @@ static msg_t shell_thread(void *p) {
|
||||||
}
|
}
|
||||||
chSysLock();
|
chSysLock();
|
||||||
chEvtBroadcastI(&shell_terminated);
|
chEvtBroadcastI(&shell_terminated);
|
||||||
|
chSysUnlock();
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue