Method for automatic creation for Singleton mode in component programming
An automatic generation and component technology, applied in the direction of multi-programming devices, etc., can solve problems such as programming complexity, and achieve the effect of reducing programming complexity.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0041] The present invention will be described in further detail below in conjunction with the accompanying drawings.
[0042] According to the method provided by the present invention, in CAR component programming, the realization of the singleton mode is not to obtain the corresponding attributes by inheriting a singleton base class like the above-mentioned java or .Net, but directly declares it as a global variable and initializes it. Multi-thread synchronization management ensures that there is only one instance of this global variable.
[0043] When the user specifies a class in the .car file as the singleton attribute and compiles the .car file, the CAR compiler will automatically generate relevant processing codes, and the processing process is as follows: First, several related global variables will be declared, except for corresponding In addition to the global pointer of this object, there is also a state value representing the current state of this object, and a glo...
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