硬汉嵌入式论坛

 找回密码
 立即注册
查看: 6730|回复: 2
收起左侧

[ThreadX全家桶] Threadx线程调度源码,变量_tx_thread_execute_ptr是如何更新的

[复制链接]

2

主题

4

回帖

10

积分

新手上路

积分
10
发表于 2021-5-12 10:21:14 | 显示全部楼层 |阅读模式
在看threadx线程调度源码,其中有一个变量_tx_thread_execute_ptr,它的定义如下:
/* Define the variable that holds the next thread to execute.  It is important
   to remember that this is not necessarily equal to the current thread
   pointer.  */

THREAD_DECLARE  TX_THREAD *     _tx_thread_execute_ptr;
按照源码中使用和注释,它应该是READY中第二高优先级的线程(第一的应该是_tx_thread_current_ptr);
但是我没有找到threadx调度更新_tx_thread_execute_ptr,希望大佬能帮忙解释一下,感谢感谢!!!


回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115812
QQ
发表于 2021-5-12 15:25:56 | 显示全部楼层
这个要研究下源码,最近一直没看,等看了跟楼主再交流
回复

使用道具 举报

2

主题

4

回帖

10

积分

新手上路

积分
10
 楼主| 发表于 2021-5-13 18:21:00 | 显示全部楼层
eric2013 发表于 2021-5-12 15:25
这个要研究下源码,最近一直没看,等看了跟楼主再交流

那坐等大佬看了,一起讨论
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-5-20 15:02 , Processed in 0.226634 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表