rt-thread-official/components
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
..
dfs fix file mmap (#8865) 2024-04-28 15:21:02 +08:00
drivers [i2c] adjust the timing for I2C initialization 2024-04-29 20:46:12 -04:00
fal [fal]修正类型不匹配 2024-04-12 19:00:41 -04:00
finsh [finsh] remove finsh_syscall_lookup() function declaration 2024-03-31 20:31:35 -04:00
legacy [rtdef] use lower-case to define attributes (#6728) 2022-12-11 13:12:03 -05:00
libc [kernel] add rt_thread_close() 2024-05-01 00:49:09 -04:00
lwp fix baudrate error (#8873) 2024-04-29 18:00:34 +08:00
mm [fixup] aarch64 UMP compiler error (#8677) 2024-03-30 17:58:38 +08:00
mprotect 实现MPU抽象层 (#8080) 2023-10-30 08:24:55 -04:00
net [clang-format] 增加clang-format格式化配置,通过ide或者手动运行tools/run-clang-format.py进行代码自动格式化 2024-04-21 01:18:37 -04:00
utilities 解决LOG_RAW异步输出多条文本的时候会被截断,原因是rt_vsnprintf会在字符串最后添加\0,ulog.c中的do_output()将\0也压入到ulog.async_rb,当LOG_RAW没有及时输出,那么rb中的字符串被\0截断了,导致没法正确输出LOG_RAW信息 2024-04-19 22:27:33 -04:00
vbus 🎯 Sync smart & scheduler codes (#8537) 2024-02-23 17:49:15 +08:00
Kconfig [msh] add dependency of RT_USING_CONSOLE 2023-12-01 14:43:05 +08:00
SConscript [components] 移除对老版本bsp的lwip版本默认选定 2021-06-28 15:33:14 +08:00