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:
Allan Stephens 2016-10-25 12:45:05 -05:00 committed by Andrew Boie
commit 4aef71b9f6
2 changed files with 2 additions and 0 deletions

View file

@ -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()) {

View file

@ -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);