unified: Finish adding thread monitoring support
Existing code wasn't removing a thread from the kernel's list of active threads if the thread terminated or aborted. (It did remove it if the delayed starting of a thread was cancelled.) Change-Id: Icc97917e33765696480d0e9bf31e882ef555d095 Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
parent
1be7bca333
commit
4aef71b9f6
2 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,7 @@ void k_thread_abort(k_tid_t thread)
|
|||
key = irq_lock();
|
||||
|
||||
_k_thread_single_abort(thread);
|
||||
_thread_monitor_exit(thread);
|
||||
|
||||
if (_current == thread) {
|
||||
if (_ScbIsInThreadMode()) {
|
||||
|
|
|
@ -39,6 +39,7 @@ void k_thread_abort(k_tid_t thread)
|
|||
key = irq_lock();
|
||||
|
||||
_k_thread_single_abort(thread);
|
||||
_thread_monitor_exit(thread);
|
||||
|
||||
if (_current == thread) {
|
||||
_Swap(key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue