Fixed bug 3411207.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3363 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
5463b41d3a
commit
c69417e365
|
@ -358,7 +358,6 @@ void chThdExit(msg_t msg) {
|
||||||
void chThdExitS(msg_t msg) {
|
void chThdExitS(msg_t msg) {
|
||||||
Thread *tp = currp;
|
Thread *tp = currp;
|
||||||
|
|
||||||
chSysLock();
|
|
||||||
tp->p_u.exitcode = msg;
|
tp->p_u.exitcode = msg;
|
||||||
#if defined(THREAD_EXT_EXIT_HOOK)
|
#if defined(THREAD_EXT_EXIT_HOOK)
|
||||||
THREAD_EXT_EXIT_HOOK(tp);
|
THREAD_EXT_EXIT_HOOK(tp);
|
||||||
|
|
Loading…
Reference in New Issue