Fixed bug 3411207

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3360 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
barthess 2011-09-20 16:00:30 +00:00
parent 0886cac049
commit 5a3a608ad9
2 changed files with 2 additions and 0 deletions

View File

@ -353,6 +353,7 @@ void chThdExit(msg_t msg) {
REG_REMOVE(tp);
#endif
chSchGoSleepS(THD_STATE_FINAL);
chSysUnlock();
}
#if CH_USE_WAITEXIT || defined(__DOXYGEN__)

View File

@ -206,6 +206,7 @@ static msg_t shell_thread(void *p) {
}
chSysLock();
chEvtBroadcastI(&shell_terminated);
chSysUnlock();
return msg;
}