Message processing method and device, electronic equipment and computer readable storage medium

A message processing and message technology, applied in the computer field, can solve problems such as time-consuming, complicated communication between UI lines, and stuck

Active Publication Date: 2019-11-01
ALIBABA GRP HLDG LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When an event that triggers the linkage of multiple interface windows occurs, there will be a problem of mutual coordination of multiple UI (User Interface, User Interface) threads. In the scenario of UI threads, the synchronization problem between UI threads and the coordination between UI threads The communication will become more complicated and time-consuming, resulting in unsmooth phenomena such as interface jams, and even jamming due to UI thread synchronization problems

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
  • Message processing method and device, electronic equipment and computer readable storage medium
  • Message processing method and device, electronic equipment and computer readable storage medium
  • Message processing method and device, electronic equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0081] Such as Figure 5 As shown, it is one of the flow diagrams of the message processing method of the embodiment of the present invention. The method is based on the multi-layer nested structure introduced above. The multi-layer nested interfaces correspond to the multi-layered control trees respectively. In the control tree corresponding to any layer interface of the current layer interface, it includes the first control node corresponding to the next layer interface embedded in the current layer interface and the second control node corresponding to the single control in the current layer interface; in the terminal interface, Including the second control node corresponding to a single control in the interface of the current layer, the parent node of the root node of the control tree corresponding to the interface of the next layer is the corresponding first control node in the interface of the previous layer.

[0082] Based on the above-mentioned multi-layer nested archi...

Embodiment 2

[0098] Such as Figure 6 As shown, it is one of the schematic structural diagrams of the message processing device of the embodiment of the present invention, which is also based on the multi-layer interface nesting and multi-layer control tree structure in the first embodiment. The unit includes:

[0099] The message acquiring module 11 is configured to acquire interface messages. As described in Embodiment 1, the processing process of obtaining interface messages can be executed in the UI thread, therefore, the message obtaining module 11 can be a program module running in the UI thread, and can also control or initiate the UI thread to perform corresponding processing program module. Specifically, the UI thread reads the IO event message from the message queue, and then performs message conversion on the IO event message to generate an interface message. Wherein, the window handle and / or the coordinate information of the IO event carried in the IO event message and the i...

Embodiment 3

[0110] Such as Figure 7 As shown in , it is a schematic flowchart of a message processing method in an embodiment of the present invention, and the method includes:

[0111] S201: Acquiring interface messages of multi-layer nested interfaces. This step can be performed by the UI thread.

[0112] S202: Obtain a control tree corresponding to a multi-layer nested interface. This step can be performed by the UI thread and the interface processing logic corresponding to the interface of each layer. Specifically, the control tree can be stored in a designated area of ​​the operating system, and the UI thread and the interface processing logic corresponding to the interface of each layer can read controls from this area. Information about the tree.

[0113] S203: According to the multi-layer control tree, route the interface message layer by layer to the interface processing logic corresponding to the end interface or the interface processing logic corresponding to a single contr...

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 embodiment of the invention provides a message processing method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: obtaining an interfacemessage; and according to the multi-layer control tree, routing the interface message to an interface processing logic corresponding to the tail end interface or an interface processing logic corresponding to a single control in any layer of interface layer by layer. According to the embodiment of the invention, a loose fusion mechanism among multiple layers of interfaces is realized, so that theinterface engine of each layer of interface is conveniently and independently developed, and the flexible customization of the embedded interface is realized. In the whole message transmission and processing process, the problem of coordination and synchronization among multiple threads is not involved, and the problems of time consumption or jamming and the like caused by coordination and synchronization of the multiple threads are avoided.

Description

technical field [0001] Embodiments of the present invention relate to a message processing method, device, electronic equipment, and computer-readable storage medium, and belong to the field of computer technology. Background technique [0002] In the prior art, there are often situations where multiple interfaces are nested, and each layer of interface has its own independent interface processing logic, and an independent interface engine will be formed during the interface development process. For the situation of multi-interface engines, one processing method in the prior art is to execute multiple interface engines embedded in interfaces in a multi-threaded manner. When an event that triggers the linkage of multiple interface windows occurs, there will be a problem of mutual coordination of multiple UI (User Interface, User Interface) threads. In the scenario of UI threads, the synchronization problem between UI threads and the coordination between UI threads The commun...

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 Applications(China)
IPC IPC(8): G06F9/451
CPCG06F9/451
Inventor 胡耀
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products