Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for realizing function mandate

A technology for implementing functions and functions, applied in the field of function management and control, can solve problems such as being prone to errors, unable to modify the main thread code, destroying the program structure, etc., to achieve the effect of improving the efficiency of hosting, avoiding hosting errors and the destruction of the program structure.

Inactive Publication Date: 2014-02-19
KORTIDE LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Question 1: Although the exit of the main thread means the exit of the process, there are two constraints
First, when the main thread exits, it only returns to the message loop of the main thread, which does not mean that the current process or the main thread has exited. After entering the message loop, it leaves the user's code, and the user cannot know exactly when the message loop ends. 1. When the main thread exits; Second, during the running process, a submodule or loaded third-party DLL library cannot modify the main thread of the process or other codes beyond its scope, so it cannot be obtained when the main thread exits When to call your own code
[0005] Question 2: Although the user can use the "thread managed function" method to host the function on the main thread, host a function on the main thread, and when the main thread finishes exiting, it will call this function to be notified indirectly, but this managed Function calls must be executed on the main thread, which is cumbersome for users. If there are many functions to be hosted, different functions may be attached to different threads, and different functions may be run by different codes or even different third parties. The code to create, etc. These circumstances make this method more complicated to operate, more error-prone, and even destroy the program structure

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for realizing function mandate
  • Method and device for realizing function mandate
  • Method and device for realizing function mandate

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0013] Such as figure 1 Shown is a schematic structural diagram of a preferred embodiment of a data processing device implementing function hosting in the present invention. The data processing device 1 may be a computer, a mobile phone, a personal digital assistant (Personal Digital Assistant, PDA) and the like. The data processing device 1 includes a processor 11 and a memory (not shown in the figure). The memory is used to store the componentized software system 10 capable of implementing function hosting. The componentized software system 10 includes a function hosting module 100 . The processor 11 is used to run the stored function hosting module 100 in the componentized software system 10 to implement function hosting.

[0014] Such as figure 2 As shown, it is a specific implementation flowchart of a preferred embodiment of the method for implementing function hosting in the present invention. This method works for figure 1 The data processing device 1 is shown. ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for realizing function mandate. In the method, the mandate function of a function is used for mandating a function to be mandated to a progress in a component-based software system, a destructor function is used to call and execute the mandated function when the progress to which the function mandated quits and enters into a ready ending state, thereby improving mandating efficiency of the function and avoiding the mandate error of the function and the damage of a program structure. The invention further provides a data processing device for realizing the function mandating.

Description

technical field [0001] The present invention relates to a method and device for realizing function management and control, in particular to a method and device for realizing function hosting. Background technique [0002] With the continuous development of computer software technology, component software technology has become more and more popular, and various component technologies and corresponding embedded operating systems supporting these component technologies have emerged as the times require. [0003] At present, when people use the componentized software system platform for programming, for example, when programming on the Elastos platform developed by Shanghai Ketai Century Technology Co., Ltd., they may want to be notified of the process exit, so that when the process exits and enters the ready-to-end state Do some resource cleaning work, or set some flags, send message notifications, etc. when the process exits and enters the ready-to-end state. However, there ar...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44
Inventor 陈榕宋世军
Owner KORTIDE LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products