Skip to content

Handle empty queue after K_CF_RUN_LOOP_RUN_HANDLED_SOURCE#245

Merged
elibon99 merged 1 commit intomainfrom
elias/macos-hid-fixes
Jan 8, 2025
Merged

Handle empty queue after K_CF_RUN_LOOP_RUN_HANDLED_SOURCE#245
elibon99 merged 1 commit intomainfrom
elias/macos-hid-fixes

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
@emlun emlun deleted the elias/macos-hid-fixes branch September 2, 2025 13:39
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

Comments