Skip to content

Fix race condition in work_queue sample.#150

Merged
brycelelbach merged 2 commits intoNVIDIA:mainfrom
bpinzone-nvidia:bpinzone_fix_work_queue_race_condition
Mar 6, 2026
Merged

Fix race condition in work_queue sample.#150
brycelelbach merged 2 commits intoNVIDIA:mainfrom
bpinzone-nvidia:bpinzone_fix_work_queue_race_condition

Conversation

@bpinzone-nvidia
Copy link
Contributor

Fix race condition in work_queue sample. For cases where the queue was not empty and didn't need to be processed and some threads reach the atomic add before all threads finish reading the queue size to determine that it does not need to be processed.

@copy-pr-bot
Copy link

copy-pr-bot bot commented Mar 5, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

👋 Thank you for your contribution!

This pull request is from a forked repository so GitHub Actions will not be able to run CI. A maintainer will review your changes shortly and manually trigger the CI.

@maintainers Please review this PR when you have a chance and follow the instructions in the CONTRIBUTING.md file to trigger the CI.

@brycelelbach brycelelbach merged commit a076d2a into NVIDIA:main Mar 6, 2026
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

Successfully merging this pull request may close these issues.

2 participants