aboutsummaryrefslogtreecommitdiffstats
path: root/os/various
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-20 17:08:22 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-20 17:08:22 +0000
commit5463b41d3a7a81da20c88631535c088decd61999 (patch)
treedaae26b7e2f842c1a869563e600e1df1fb1b3192 /os/various
parentbd339dfa99310b372fc2699b79c700bbec7a0543 (diff)
downloadChibiOS-5463b41d3a7a81da20c88631535c088decd61999.tar.gz
ChibiOS-5463b41d3a7a81da20c88631535c088decd61999.tar.bz2
ChibiOS-5463b41d3a7a81da20c88631535c088decd61999.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3362 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/various')
-rw-r--r--os/various/shell.c3
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;
}