You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sec-touch): prioritize SET tasks over pending GET tasks in the queue
Previously, user-triggered SET tasks (e.g. fan speed changes) were appended
to the back of the task queue, forcing them to wait behind all pending periodic
GET polls before being dispatched to the hardware.
add_set_task() now inserts incoming SET tasks after any already-queued SET
tasks and before the first GET task. This means a user action is picked up
as soon as the current in-flight task completes, regardless of how many GET
polls are waiting. When multiple SET tasks are submitted in quick succession
they all land at the front in submission order and are dispatched before any
GET resumes.
No changes to the dispatch loop, watchdog, or cleanup logic — the in-flight
task is already removed from the deque when dispatched, so the priority insert
naturally lands at position 0 while waiting for a response.
0 commit comments