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

bug:some data in the queue cannot be obtained #7

Open
dakeleblack opened this issue Dec 27, 2024 · 1 comment
Open

bug:some data in the queue cannot be obtained #7

dakeleblack opened this issue Dec 27, 2024 · 1 comment

Comments

@dakeleblack
Copy link

When multiple threads call push, pop, and steal of WorkStealingQueue at the same time, some data in the queue cannot be obtained due to the maintenance of _top and _bottom

@tsung-wei-huang
Copy link
Member

The WorkStealingQueue is a single-producer multiple-consumer queue. Only one thread can call push and pop, while steal can be called by multiple threads.

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