Closed
修正 acltdtGetQueueRoute 的 route 参数方向 #1180
KaranocaVeAdd on  Oct 21Closed at  Oct 26
KaranocaVe
KaranocaVe
Oct 21 Create

修正 acltdtGetQueueRoute 的 route 参数方向

现象

acltdtGetQueueRoute 用 routeList 和 index 读取一项队列路由配置,并将结果写入 route。公开头文件把 route 标为 [IN|OUT],中文 API 参考也标为“输入&输出”。这会让调用者误以为调用前需要提供有效的路由内容。

修复

将头文件注释和中文 API 参考中的 route 参数方向统一标记为纯输出,不改动运行逻辑。

影响

参数方向说明错误会误导调用者为输出对象预先填充内容,增加不必要的初始化并混淆接口契约。修正只涉及注释与文档,不改变运行逻辑。

关联 PR: https://gitcode.com/cann/runtime/merge_requests/5707

likedislike
KaranocaVeKaranocaVe
Oct 21 Associated pull request
KaranocaVeKaranocaVe
Oct 21 Modify description of issue
xiaocunxiaocunCollaborators
Oct 21 Assign yongfei-hu as responsible person
xiaocun
xiaocunCollaborators
Oct 21 Comments:

感谢反馈!实现校验指针和索引后,直接将 routeList 中对应元素赋给 *route,没有使用目标对象的原有路由内容。因此,头文件和中文 API 参考中的 route 应统一标为输出参数。调用者仍须提供有效的目标对象,但无需预先填充路由配置。
认可本次将公开头文件和中文 API 参考中的参数方向统一修正为输出,不涉及函数签名、ABI 或运行逻辑变更。
后续将跟踪 PR !5707 的评审与合入,核对参数说明与实现一致。

likedislike
likeA_starlikeA_starCollaborators
Oct 26 Associated pull request
ykl999
ykl999Collaborators
Oct 26 Comments:

pr已合入 issue关闭处理

likedislike
ykl999ykl999Collaborators
Oct 26 changed custom state from 进行中 to 已解决
ykl999ykl999Collaborators
Oct 26 Close issue