zephyr/tests/kernel
Andy Ross 3f55dafebc kernel: Deprecate k_thread_cancel() API
The only difference between this call and k_thread_abort() (beyond
some minor performance deltas) is that "cancel" will act as a noop in
cases where the thread has begun execution and will return an error.
"Abort" always succeeds, of course.  That is inherently racy when used
as a "stop the thread" API: there's no way in general (or at all in
SMP situations) to know that you're calling this function "early
enough" to catch the thread before it starts.

Effectively, all k_thread_cancel() gives you that k_thread_abort()
doesn't is an indication about whether or not a thread has started.
There are many other ways to get that information that don't require
dangerous kernel APIs.

Deprecate this function.  Zephyr's own code never used it except for
its own unit test.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-04-24 03:57:20 +05:30
..
alert/alert_api tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
arm_irq_vector_table tests: classify tests 2018-04-09 22:55:20 -04:00
arm_runtime_nmi tests: classify tests 2018-04-09 22:55:20 -04:00
boot_page_table tests: classify tests 2018-04-09 22:55:20 -04:00
common sanitycheck: add min_flash option for 32K devices 2018-04-21 06:57:38 -07:00
context tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
critical tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
device tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
early_sleep tests: kernel: Add a test to verify early sleep 2018-03-05 22:00:06 -05:00
errno tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
fatal tests: fix arc related codes 2018-04-17 10:50:12 -07:00
fifo tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
fp_sharing tests: kernel: stop relying on path for naming 2018-02-18 09:16:40 -05:00
gen_isr_table tests: classify tests 2018-04-09 22:55:20 -04:00
init init: verify boot_delay 2018-03-10 08:44:39 -05:00
irq_offload tests: classify tests 2018-04-09 22:55:20 -04:00
lifo tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
mbox tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
mem_heap/mheap_api_concept tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
mem_pool tests: mempool: Add overflow checks 2018-04-12 14:27:24 -07:00
mem_protect tests: fix arc related codes 2018-04-17 10:50:12 -07:00
mem_slab tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
mp tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
msgq/msgq_api tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
mutex tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
obj_tracing tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
pending tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
pipe tests: fix arc related codes 2018-04-17 10:50:12 -07:00
poll tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
profiling/profiling_api tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
queue tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
semaphore tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
sleep tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
smp tests/kernel: SMP test 2018-02-16 10:44:29 -05:00
spinlock tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
stack tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
static_idt tests: classify tests 2018-04-09 22:55:20 -04:00
systhreads tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
threads kernel: Deprecate k_thread_cancel() API 2018-04-24 03:57:20 +05:30
tickless tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
timer tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
workq tests: kernel: use a consistent test suite name 2018-04-09 22:55:20 -04:00
xip tests: xip: cleanup test 2018-04-09 22:55:20 -04:00