2c9b7c10b9
* [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> |
||
---|---|---|
.. | ||
delay | ||
io | ||
ipc | ||
libdl | ||
pthreads | ||
signal | ||
Kconfig | ||
SConscript | ||
readme.md |
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
- 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>