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

Handle empty queue after K_CF_RUN_LOOP_RUN_HANDLED_SOURCE #245

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

elibon99
Copy link
Contributor

@elibon99 elibon99 commented Jan 8, 2025

Occassionally CFRunLoopInMode() returns K_CF_RUN_LOOP_RUN_HANDLED_SOURCE even though the _hid_read_callback() has not been invoked, resulting in reading from an empty queue. We can handle this by re-running the run loop with a retry mechanism.

Occassionally CFRunLoopInMode() returns K_CF_RUN_LOOP_RUN_HANDLED_SOURCE
even though the _hid_read_callback() has not been invoked, resulting
in reading from an empty queue. We can handle this by re-running the run
loop with a retry mechanism.
@elibon99 elibon99 merged commit 88b888b into main Jan 8, 2025
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants