diff options
Diffstat (limited to 'os/various/shell.c')
-rw-r--r-- | os/various/shell.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/os/various/shell.c b/os/various/shell.c index 8a247b9f4..b0f995757 100644 --- a/os/various/shell.c +++ b/os/various/shell.c @@ -204,9 +204,10 @@ static msg_t shell_thread(void *p) { }
}
}
+ /* Atomically broadcasting the event source and terminating the thread,
+ there is not a chSysUnlock() because the thread terminates upon return.*/
chSysLock();
chEvtBroadcastI(&shell_terminated);
- chSysUnlock();
return msg;
}
|