Invention Grant
- Patent Title: Method and device for processing a window task
- Patent Title (中): 用于处理窗口任务的方法和设备
-
Application No.: US14284691Application Date: 2014-05-22
-
Publication No.: US09588782B2Publication Date: 2017-03-07
- Inventor: Zifeng Shang , Xuemin Ma
- Applicant: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
- Applicant Address: CN Shenzhen
- Assignee: Tencent Technology (Shenzhen) Company Limited
- Current Assignee: Tencent Technology (Shenzhen) Company Limited
- Current Assignee Address: CN Shenzhen
- Agency: Fitzpatrick, Cella, Harper & Scinto
- Priority: CN201310086296 20130318
- Main IPC: G06F9/46
- IPC: G06F9/46 ; G06F9/44

Abstract:
A method and a device for processing a window task are provided. The method includes: creating a thread class including a first member variable for representing whether a task processed currently has been cancelled and a first member function for initiating a backstage thread; creating a backstage thread object based on the thread class when a task that takes time needs to be processed, and initializing the first member variable in the backstage thread object as FALSE, invoking the first member function in the backstage thread object to initiate the backstage thread; in process of the backstage thread processing the task that takes time, if a close instruction for a current window is received, setting the first member variable in the backstage thread object as TRUE to release the memory space occupied by the backstage thread object and closing the current window.
Public/Granted literature
- US20140282598A1 METHOD AND DEVICE FOR PROCESSING A WINDOW TASK Public/Granted day:2014-09-18
Information query