diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2016-10-25 12:45:05 -0500 |
---|---|---|
committer | Andrew Boie <andrew.p.boie@intel.com> | 2016-10-26 17:03:13 +0000 |
commit | 4aef71b9f6b9f3eeed29f614c0de1074f887a03b (patch) | |
tree | 86d68db824b495a04d0d1cc13980043a908358dc /kernel | |
parent | 1be7bca3333d0636f48a867148b9d2e44c0d6270 (diff) |
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/unified/thread_abort.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/unified/thread_abort.c b/kernel/unified/thread_abort.c index ebe93ab43..deceafc2d 100644 --- a/kernel/unified/thread_abort.c +++ b/kernel/unified/thread_abort.c @@ -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); |