发明名称 Input device event processing
摘要 A background thread can be used to process events, e.g., a touch, gesture, pinch, or swipe, that are received on a touch sensitive device, or events, e.g., mouse scroll wheel events that are received on a input device, e.g., a mouse. The background thread can be used to process events when a main thread assigned to the Graphical User Interface (GUI) is interrupted. In such situations, the background thread can continue processing events. In cases where the main thread is interrupted and the event is scroll input, the background thread can draw content on the GUI in response to the scroll, so that the response to the scroll input observed by the user is unaffected by the interrupted main thread. By processing events and drawing content using the background thread while the main thread is blocked, the GUI can be navigated without having the user experience a stall or stutter.
申请公布号 US9286081(B2) 申请公布日期 2016.03.15
申请号 US201213648688 申请日期 2012.10.10
申请人 Apple Inc. 发明人 Dunn Corbin R.;Ozer Ali T.;Ledet Raleigh Joseph;Forster Kristin
分类号 G06F9/44;G06F3/038;G06F9/54 主分类号 G06F9/44
代理机构 Fish & Richardson P.C. 代理人 Fish & Richardson P.C.
主权项 1. A method comprising: receiving one or more input device events for navigating content presented on a graphical user interface; storing the one or more input device events in an event queue, the event queue including one or more GUI events relating to the graphical user interface (GUI), wherein the input device events and the GUI events are of different types, and wherein the GUI events are stored in a first portion of the event queue while the input device events are stored in a second portion of the event queue that is distinct from the first portion; processing the one or more GUI events stored in the event queue using a first processing thread and processing the one or more input device events from the event queue using a second processing thread; determining a stall in the processing by the first processing thread; storing input device events received after determining the stall in the processing by the first processing thread in a second event queue; and processing the input device events from the second event queue using the second processing thread, wherein the method is performed by one or more hardware processors.
地址 Cupertino CA US