summaryrefslogtreecommitdiff
path: root/libcpu/SConscript
diff options
context:
space:
mode:
authorShell <[email protected]>2024-05-01 12:49:09 +0800
committerGitHub <[email protected]>2024-05-01 00:49:09 -0400
commit2c9b7c10b9ff6b4509945376bb4e25dd18c1ce25 (patch)
treea9f46cdbace47c261839a6d8ad040c5bd93659cd /libcpu/SConscript
parentbf669dd02c0370b57445609781217cd51d256c05 (diff)
[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 <[email protected]>
Diffstat (limited to 'libcpu/SConscript')
0 files changed, 0 insertions, 0 deletions