Commit Graph

119 Commits

Author SHA1 Message Date
Man, Jianting (Meco) 6295ec108e
[kernel] remove the register keyword (#5888) 2022-04-29 06:34:42 +08:00
thewon86 f5b0bfd3f4 uniform code writing-disable interrupt 2022-04-20 14:22:43 +08:00
Man, Jianting (Meco) fa8c4bcaa2
[kernel][thread.c] remove duplicated clear to 0 (#5659) 2022-03-11 17:24:53 +08:00
Chester guo 01b3a34cc6
[Fix bug] fix thread init bug (#4891)
When we create thread A by rt_thread_init but do
    not init the thread object,and then create thread
    B in the thread A,it maybe crash.
2022-02-17 00:44:37 +08:00
thewon86 4db9cfbebe return thread error when resumed by signal 2022-01-25 13:58:33 +08:00
Meco Man 65ecca80ee [kernel] improve comments 2022-01-20 20:58:46 +08:00
Meco Man 3ac9eece5a [kernel] rt_thread_suspend/resume增加注释 2022-01-14 22:59:19 +08:00
Man, Jianting (Meco) c6852aa306
Merge branch 'master' into removeinit 2022-01-10 14:25:46 -05:00
Gabriel Wang d7b8cf81e6 move some __on_rt_xxxxx_hook from rtdef.h to dedicated c soure files 2022-01-07 23:35:44 +00:00
Meco Man e6cd32a1ad [kernel] 将rt_thread_timeout设置为私有函数 2021-12-30 01:30:21 +08:00
Meco Man f1ba7c65ad [kernel] rt_thread_suspend增加断言 2021-12-30 01:27:54 +08:00
Meco Man 1f2e93f1a3 [kernel] remove .init_priority 2021-12-27 20:34:35 -05:00
guo 1e03864fcb
Merge pull request #5278 from thewon86/master
remove duplicate work between idle and thread_exit
2021-12-10 18:55:10 +08:00
Bernard Xiong 7c012afdf8
Merge pull request #5314 from GuEe-GUI/master
fixup .bss size define in link.lds and set spsel=1 in aarch64
2021-12-01 09:18:50 +08:00
GuEe-GUI efbdbc2636 fixup .bss size define in link.lds and set spsel=1 in aarch64 2021-11-30 11:14:17 +08:00
thewon86 5ae6b54e21 remove duplicate work between idle and thread_exit 2021-11-26 09:13:18 +08:00
mazhiyuan 99e9ea61bc 修复部分bsp编译报错 2021-10-13 11:02:01 +08:00
liukangcc 202b23371d [update] thread.c api annotation. 2021-09-13 13:58:18 +08:00
liukangcc 48c7a455e6 [update] src/thread.c function description. 2021-09-10 18:18:37 +08:00
Meco Man 67f2f323a2 [kernel] 规范内部函数命名 2021-08-06 15:20:27 +08:00
fenghuijie 0015af02e4 调整代码,以支持cpu usage 2021-07-05 18:33:22 +08:00
fenghuijie 05bb1a50b0 添加idle回收资源的修改 2021-07-03 17:54:58 +08:00
Meco Man 8b53609f57 [kernel] 补充endif后缀注释(3) 2021-06-10 18:39:43 +08:00
Meco Man 039d7979d8 [kernel][thread.c] 规范内部函数命名方式 2021-05-29 17:30:18 +08:00
tangyuxin d936746806 [kernel] Improve kernel stability 2021-05-28 10:28:00 +08:00
Bernard Xiong ca8056072d
Merge pull request #4329 from liruncong/delay_until_3
修正rt_thread_delay_until时间不准问题
2021-03-11 15:26:06 +08:00
Meco Man 678306d300 [kernel]auto formatted 2021-03-08 11:25:38 +08:00
liruncong 5ce889ea82 撤销有符号比较,仍应使用无符号比较 2021-03-04 19:33:28 +08:00
张世争 72d7f6c0ad [update][kernel]规范rt_object_t强制转换的使用,消除上次提交的编译警告 2021-02-28 12:00:44 +08:00
张世争 62137eec9a [update][kernel]规范rt_object_detach的使用 2021-02-26 10:38:31 +08:00
Meco Man 2b98ac215a [kernel] rearrange rt_thread_control() - schedule the thread when close it 2021-02-24 16:29:43 +08:00
liruncong 302f179c85 修正rt_thread_delay_until时间不准问题,及错误使用无符号比较问题 2021-02-09 23:18:45 +08:00
Bernard Xiong a174881e0b
Merge pull request #4209 from jesven/cleanup
cleanup操作改由当前线程退出前执行
2020-12-31 14:43:45 +08:00
shaojinchun 5957e15754 cleanup操作改由当前线程退出前执行 2020-12-31 10:31:06 +08:00
bernard b4e57db1a8 [kernel] Use object_find to implement thread_find/device_find 2020-12-31 09:47:55 +08:00
Bernard Xiong 0776b36a4f [Kernel] fix the delay_until issue 2020-10-22 22:44:58 +08:00
Bernard Xiong aeff91b2a7
Merge pull request #3769 from jesven/fix_yield
解决yield操作不能及时释放cpu的问题
2020-10-01 15:46:10 +08:00
chenchaoqun c15a7858c9 [fix] thread control bug about RT_THREAD_CTRL_CLOSE command 2020-09-02 15:04:42 +08:00
shaojinchun 3ed84b8d03 解决yield操作不能及时释放cpu的问题 2020-07-24 21:13:56 +08:00
cliff-cmc 7471a665db
Update thread.c 2020-05-25 08:43:13 +08:00
Cliff Chen 240961e8e8 [Kernel] Fix double release for thread
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
2020-05-15 18:31:34 +08:00
suhui d6d690da1a fix the comment
Signed-off-by: suhui <3164683437@qq.com>
2020-02-21 19:46:59 +08:00
zhaoshaowei ff44570887
[Kernel] fix typo in rt_thread_delay_util 2019-12-27 16:41:47 +08:00
Bernard Xiong 2c1f7b73a7 [Kernel] fix typo in rthread_delay 2019-12-19 09:45:58 +08:00
Bernard Xiong df57b9014c
Update thread.c 2019-12-19 08:06:53 +08:00
Bernard Xiong 4a14b8f59a [Kernel] Add delay_util implementation. 2019-12-18 21:38:26 +08:00
Bernard Xiong 992d3af3ae [kernel] code and comments cleanup 2019-12-16 13:59:46 +08:00
shaojinchun 88b552276b 修正在多核时,运行在另外核上的idle任务有可能会插在rt_thread_exit调用rt_schedule之前释放其资源的问题 2019-11-15 10:45:12 +08:00
shaojinchun cdaf8c65ca 修正rt_thread_delete在特定点被切走后不能回来继续执行的问题 2019-11-12 16:02:24 +08:00
shaojinchun cb07e5fb24 开放spinlock相关函数 2019-09-27 14:38:33 +08:00