summaryrefslogtreecommitdiff
path: root/src/idle.c
AgeCommit message (Collapse)Author
2026-04-07fix[src][thread]: add defensive check for idle thread suspensionwdfk-prog
2025-09-30doxygen: cleanup code for group_thread_managementChen Wang
The cleanup involved three parts: - Merging the standalone "/**@{*/" into "@addtogroup group_thread_management" - Changing "/**@}*/" to "/** @} group_thread_management */", adding the group name makes it easier to find the matching "@{" part. - Deleting the "@addtogroup" directive in "include/rtthread.h" because this header file doesn't have doxygen comments. All doxygen comments for function bodies are defined in other .c files. Note, we remian two doxygen comments for rt_thread_inited_hookproto_t and rt_thread_idle_sethook in the "include/rtthread.h". rt_thread_inited_hookproto_t is really defined here. For rt_thread_idle_sethook, please see FIXME comment for reason. Signed-off-by: Chen Wang <[email protected]>
2025-09-02doxygen: updated doc for thread management subsystemChen Wang
Signed-off-by: Chen Wang <[email protected]>
2024-10-21解决编译错误heyuanjie87
2024-10-21给使用独立的defunct线程添加限制条件heyuanjie87
2024-10-21分离defunctheyuanjie87
2024-10-21[kernel]在smart模式也启用"回收线程"heyuanjie87
lwp的某些资源回收放到了后台,其中会引起线程挂起,而idle不应该被挂起
2024-06-04[smart] add CPU/thread usage tracing config (#8947)Shell
* [smart] add CPU usage tracing config This patch introduces following features: - Added CPU usage tracing functionality, enabled by default, for applications like 'top' - update time as smart independent Signed-off-by: Shell <[email protected]> * fixup: add ump idle thread --------- Signed-off-by: Shell <[email protected]>
2024-05-29[IDLE] 修改注释,避免造成歧义 (#9010)wdfk-prog
2024-05-08[src] add rt_hw_cpu_id() wrapper API (#8894)Shell
* [src] add rt_hw_cpu_id() wrapper API rt_hw_cpu_id() is an unsafe API which should not be used by most codes directly. It's error-prone because it must be used in proper context, otherwise it can lead to errors and unpredictable behavior. This patch adds a wrapper API for rt_hw_cpu_id() to address this risk. It includes the context-checking functionality and provides a safer alternative for obtaining CPU IDs, ensuring that it is used correctly within the appropriate context. Signed-off-by: Shell <[email protected]> * fixup UMP * update API & comment * ci: cpp_check --------- Signed-off-by: Shell <[email protected]>
2024-02-23🎯 Sync smart & scheduler codes (#8537)Shell
Signed-off-by: Shell <[email protected]> Co-authored-by: xqyjlj <[email protected]>
2024-02-20[ci] fix errors under strick compiling modeMeco Man
2024-02-19[kernel] fix some strict compiling warningsMeco Man
2024-01-05✨ feat: delete thread ref (#8456)xqyjlj
2023-12-24✨ feat(idle): add _hook_spinlock, rm _idle_inited (#8361)xqyjlj
2023-11-13🐞 fix(src/idle.c): fix thread exit (#8239)xqyjlj
2023-10-30实现MPU抽象层 (#8080)tangzz98
- 为RT-Thread设计MPU抽象层,支持ARMV7-M,ARMV8-M架构,让用户使用MPU检测栈溢出等内存问题,实现线程内存隔离 - 在components/mp目录下提供通用的API,libcpu目录下提供各处理器架构的具体实现 - 在STM32U575 NUCLEO, STM32H75 NUCLEO开发板测试通过
2023-10-25🎈 perf: perf rt_hw_interrupt_disable/enable (#8042)xqyjlj
Signed-off-by: Shell <[email protected]> Co-authored-by: Shell <[email protected]>
2023-10-17Sync dfs lwp (#8123)geniusgogo
2023-04-13[HUST CSE][doxygen][src]Fix the comment in rt_thread_defunct_enqueue (#7228)hiro_655
根据这个issues #6857 在idle.c文件中找到一个函数缺失参数
2023-04-04[kernel] 将rt_thread结构体改为显式继承rt_object (#7131)Shicheng Chu
2023-02-21[src] add assertion for debuggingwangxiaoyao
2022-12-20[kenel] add static name for rt_object (#6422)Man, Jianting (Meco)
增加静态object 名字,用户可以根据内存实际使用情况决定使用动态还是静态。适用于资源极度受限的情况下使用。该功能在RT-Thread完整版本中不常用,主要用于RT-Thread Nano,以缩减对内存的占用。由于没有动态拼接支持,在静态名字下,空闲线程的名字在多核时将命名成相同的名字。
2022-12-11[rtdef] use lower-case to define attributes (#6728)Man, Jianting (Meco)
* [rtdef] rename RT_WEAK attribute as rt_weak * [rtdef] rename RT_USED attribute as rt_used * [rtdef] rename RT_SECTION attribute as rt_section * [rtdef] rename ALIGN attribute as rt_align * [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
2022-08-25[kernel] 优化内置线程命名Meco Man
main线程栈指定对齐字节数
2022-05-18[modify] the recycle logic about resource of pthread.liuxianliang
2022-04-29[kernel] remove the register keyword (#5888)Man, Jianting (Meco)
2022-04-20uniform code writing-disable interruptthewon86
2022-01-17[kernel][pm] beautify codeMeco Man
2022-01-12Merge pull request #5510 from Eureka1024/masterguo
[kernel]Delete an extra semicolon
2022-01-11[kernel]Delete an extra semicolon杨澄
2021-11-26remove duplicate work between idle and thread_exitthewon86
2021-09-10[kernel]update formatyangjie
2021-09-10[kernel]Normalized kernel API annotationyangjie
2021-08-05Merge pull request #4760 from mysterywolf/InternafunctionBernard Xiong
[kernel] 规范内核内部函数命名
2021-08-04内部函数以_开头Meco Man
2021-07-03添加idle回收资源的修改fenghuijie
2021-06-10[kernel]补充endif后缀注释Meco Man
2021-06-08Merge pull request #49 from RT-Thread/masterMeco Jianting Man
update
2021-06-04[kernel] 规范内核内部函数命名Meco Man
2021-06-03[bug][kernel] 保持空闲任务钩子函数调用的原子性Meco Man
2021-05-22[kernel][idle] _has_defunct_thread函数增加条件编译Meco Jianting Man
_has_defunct_thread函数增加条件编译,防止没有开启heap时报警
2021-03-08[kernel]auto formattedMeco Man
2020-12-31cleanup操作改由当前线程退出前执行shaojinchun
2019-09-05fix spelling mistake for "RT_IDEL_HOOK_LIST_SIZE"LinJieqiang
2019-07-13[src][idle] 修复一处编译警告tangyuxin
2019-05-06[components][pm]improve low power management componentsEvalZero
2019-02-07[Kernel] Add thread detach for system threadBernard Xiong
2018-12-24[kernel] Fix the 64bit issue for idle thread cpu binding.Bernard Xiong
2018-11-22修正idle.c中一处宏定义位置shaojinchun