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

kernel: poll: Allow 0 events for submitted work #83829

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

d3zd3z
Copy link
Collaborator

@d3zd3z d3zd3z commented Jan 10, 2025

Change:
commit cc6317d
Author: Jukka Rissanen [email protected]
Date: Fri Nov 1 14:03:32 2019 +0200

    kernel: poll: Allow 0 event input

Allows k_poll to be user with 0 events, which is useful for allowing just a sleep without having to create artivical events.

Allow the same for k_work_submit_to_queue() and k_work_submit().

@d3zd3z d3zd3z requested review from andyross and jukkar January 10, 2025 20:12
@zephyrbot zephyrbot added area: Kernel size: XS A PR changing only a single line of code labels Jan 10, 2025
Change:
    commit cc6317d
    Author: Jukka Rissanen <[email protected]>
    Date:   Fri Nov 1 14:03:32 2019 +0200

        kernel: poll: Allow 0 event input

Allows `k_poll` to be user with 0 events, which is useful for allowing just
a sleep without having to create artivical events.

Allow the same for `k_work_submit_to_queue()` and `k_work_submit()`.

Signed-off-by: David Brown <[email protected]>
@d3zd3z d3zd3z changed the title kernel: poll: Allow 0 event for submitted work kernel: poll: Allow 0 events for submitted work Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Kernel size: XS A PR changing only a single line of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants