zephyr/arch/posix
Andy Ross 6fb6d3cfbe kernel: Add new k_thread_abort()/k_thread_join()
Add a newer, much smaller and simpler implementation of abort and
join.  No need to involve the idle thread.  No need for a special code
path for self-abort.  Joining a thread and waiting for an aborting one
to terminate elsewhere share an implementation.  All work in both
calls happens under a single locked path with no unexpected
synchronization points.

This fixes a bug with the current implementation where the action of
z_sched_single_abort() was nonatomic, releasing the lock internally at
a point where the thread to be aborted could self-abort and confuse
the state such that it failed to abort at all.

Note that the arm32 and native_posix architectures, which have their
own thread abort implementations, now see a much simplified
"z_thread_abort()" internal API.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2021-02-24 16:39:15 -05:00
..
core kernel: Add new k_thread_abort()/k_thread_join() 2021-02-24 16:39:15 -05:00
include kernel: update arch_switch_to_main_thread() 2020-07-30 21:11:14 -04:00
CMakeLists.txt toolchain: improved toolchain abstraction for compilers and linker 2020-09-04 20:36:59 +02:00
Kconfig kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Linux.aarch64.cmake posix arch: build on aarch64 / allow host-specific cmake includes 2020-05-09 12:17:24 +02:00