rt-thread/components/libc/posix
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
..
delay modified: components/libc/posix/delay/delay.c Added comments for all functions in this file 2024-03-25 18:36:17 -04:00
io Add comments for all functions in components/libc/posix/io/termios/termios.c 2024-04-26 23:13:27 -04:00
ipc Add comments for all functions in components/libc/posix/ipc/mqueue.c 2024-04-30 01:08:36 -04:00
libdl [kernel] add rt_thread_close() 2024-05-01 00:49:09 -04:00
pthreads 修复POSIX线程本地存储寻找posix线程句柄时的逻辑错误 (#8790) 2024-04-15 23:13:24 +08:00
signal modified: components/libc/posix/delay/delay.c Added comments for all functions in this file 2024-03-25 18:36:17 -04:00
Kconfig sync smart & dfs (#8672) 2024-03-28 23:42:56 +08:00
SConscript [libc][posix] create 'posix' folder and move related files into it 2021-10-17 17:19:12 -04:00
readme.md [posix][io]整理posix/io文件夹 (#5539) 2022-01-24 09:16:57 +08:00

readme.md

This folder provides functions that are not part of the standard C library but are part of the POSIX.1 (IEEE Standard 1003.1) standard.

NOTE

  1. For consistency of compilation results across the different of platforms(gcc, keil, iar) , use:
    • #include <sys/time.h> to instead of #include <time.h>
    • #include <sys/errno.h> to instead of #include <errno.h>
    • #include <sys/signal.h> to instead of #include <signal.h>