rt-thread-official/include
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
..
rtatomic.h 🎈 perf: perf rt_hw_interrupt_disable/enable (#8042) 2023-10-25 20:31:25 +08:00
rtcompiler.h Fixed an issue in mdk where macro definitions are not supported in the C99 specification 2024-03-20 22:43:55 +08:00
rtdbg.h [debug] 整理debug宏并增加RT_DEBUGING_CONTEXT (#7805) 2023-07-22 10:36:42 +08:00
rtdef.h upgrade RT-Thread version to v5.2.0 2024-04-16 23:04:24 -04:00
rthw.h add rt_hw_interrupt_uninstall declare in rthw 2024-04-18 22:08:08 -04:00
rtklibc.h [klibc] organize and renmae macros, and add CI check 2024-04-20 21:52:49 -04:00
rtm.h [rtdef] use lower-case to define attributes (#6728) 2022-12-11 13:12:03 -05:00
rtsched.h [kernel] move std libc related to rtklibc.h 2024-03-20 22:26:11 -04:00
rtservice.h [kernel] fix some strict compiling warnings 2024-02-19 01:56:21 -05:00
rtthread.h [kernel] add rt_thread_close() 2024-05-01 00:49:09 -04:00
rttypes.h [ipc] [dataqueue] 修复队列 pop 挂起的线程 push 无法恢复运行的错误 (#8839) 2024-04-22 20:20:35 +08:00