rt-thread/components/libc
Shell 2c9b7c10b9
[kernel] add rt_thread_close()
* [thread] Add rt_thread_close()

This patch introduces a new function `rt_thread_close()` to enhances the
usability and maintainability by providing a dedicated mechanism for
closing threads.

- A new function `rt_thread_close()` is added to the API, providing a
  standardized approach for closing threads.
- The `rt_thread_close()` function removes a thread from the thread
  queue, updates its status to indicate closure, and performs the thread
  timer detaching which is a embedded timer in thread object.
- Additionally, the `rt_thread_detach()` function is modified to utilize
  `rt_thread_close()` internally, streamlining the thread detachment
  process.

Signed-off-by: Shell <smokewood@qq.com>
2024-05-01 00:49:09 -04:00
..
compilers [components][drivers]improve ktimer sleep (#8838) 2024-04-22 11:55:20 +08:00
cplusplus Add GCC generalized atomic operation function 2024-03-24 23:01:11 -04:00
posix [kernel] add rt_thread_close() 2024-05-01 00:49:09 -04:00
Kconfig [nano] rt-thread susport nano option 2023-11-30 11:39:34 +08:00
SConscript [nano] rt-thread susport nano option 2023-11-30 11:39:34 +08:00
posix-info.txt update posix-info.txt 2022-01-25 13:40:10 +08:00