Method for managing thread calling in double-buffering technology to prevent memory leakage
A memory leak, double-buffering technology, applied in inter-program communication, image data processing, multi-program installation, etc., can solve problems such as black screen, lag, insufficient memory, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] This embodiment provides a method for managing thread calls in double-buffering technology to prevent memory leaks, including avoiding two core application scenarios of frame-by-frame analysis OOM and basic video decoding memory leaks in double-buffering services; specifically, the following steps are included:
[0023] (1) Under the double-buffering mechanism, manage the native loading area frame-by-frame OOM phenomenon:
[0024] ①Customize the SurfaceView template, create the DEFAULT_FRAME_DURATION_MILLISECOND attribute parameter, record the thread behavior of calculating frame data, set the value of this parameter to a negative value, and avoid out-of-bounds exceptions during subsequent frame advancement calculations, and save this attribute in frameDuration, Control the frame refresh frequency, and synchronize this frequency with canvas and isAlive. Record the canvas behavior and activation status. If it is inactive, the canvas content should be recycled. At this t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com