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

msgq: add early return to msgq_poll to avoid unnecessary sleep & check #615

Closed
wants to merge 2 commits into from

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented May 27, 2024

Improves the msgq_poll function by adding an early return if messages are ready or if the timeout is zero. This avoids unnecessary sleep & msg ready calls, enhancing performance and reducing overhead.

@deanlee deanlee force-pushed the poll_eary_return branch from cfbbab6 to 72ab2d8 Compare May 27, 2024 20:18
@deanlee deanlee marked this pull request as draft July 4, 2024 16:01
@deanlee deanlee closed this Oct 8, 2024
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.

1 participant