| CPC H04N 23/651 (2023.01) [H04N 23/667 (2023.01)] | 20 Claims |

|
1. A process control method, applied to an electronic device, wherein the method comprises:
performing a photographing operation by using a camera application;
if the camera application is disabled within a first duration threshold after photographing, controlling a camera service process to hold a wake-up lock, wherein the camera service process is used to provide an image processing service, the image processing service generates and calls back a corresponding image after the camera application performs the photographing operation, and the wake-up lock is used to prevent an operating system of the electronic device from entering a sleep state;
querying a status value of a target flag bit when only a camera disable message exists in an image processing message queue, wherein the image processing message queue comprises data required when the camera service process generates an image, and wherein the target flag bit indicates whether the camera service process has completed an image processing service;
determining an image processing service status of the camera service process based on the status value of the target flag bit; and
controlling the camera service process to release the wake-up lock if the camera service process has completed the image processing service.
|