Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于任务窃取机制的疑问 #17

Open
Capsfly opened this issue Apr 5, 2023 · 3 comments
Open

关于任务窃取机制的疑问 #17

Capsfly opened this issue Apr 5, 2023 · 3 comments

Comments

@Capsfly
Copy link

Capsfly commented Apr 5, 2023

github

up你好,我想问一下这里,就是任务窃取时候,这个代码里没有把成功时候的public_task_queue里边的任务转移到t里面呀?只更改了t的task_num,请问是我理解错了么?
@CodingHanYa
Copy link
Owner

swap就是转过去了

@Capsfly
Copy link
Author

Capsfly commented Apr 5, 2023

那比如t.buffer_queue还有任务,那这么swap不就错了嘛

@CodingHanYa
Copy link
Owner

buffer_queue每次都会执行完才进行下一步。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants