Asynchronous error checking in structured documents
AssigneeMicrosoft Corporation
InventorMikhail Arkhipov
Life of this patent
Estimating the term…
Abstract
Systems and method are described for performing asynchronous error checking on a structured document. In accordance with the systems/methods, a first thread, such as a main application thread of a document editor, parses the document to identify one or more new elements included therein and create copies of the one or more new elements. A second thread, such as a background thread, applies error checking to the copies of the one or more new elements to generate error results corresponding to the one or more new elements. The first thread the uses the error results to indicate errors in association with the one or more new elements.
Claims20
A method for performing error checking on a document, comprising:
- performing by a first thread executing on at least one of one or more processors;
- identifying one or more new elements in the document;
- assigning an identifier (ID) to each new element;
- and
- storing a copy of each new element in a first queue, the copy of each new element including the ID associated with the new element and at least one of text and structural information associated with the new element;
- and
- performing by a second thread executing on at least one of the one or more processors;
- retrieving each copy of each new element from the first queue;
- applying error checking to each retrieved copy of each new element to detect errors associated therewith;
- and
- in response to detecting an error associated with a retrieved copy of a new element, generating an error checking result comprising at least the ID associated with the retrieved copy of the new element.
A system, comprising:
- one or more processors;
- and
- a storage medium that stores computer program logic that is executable by the one or more processors, the computer program logic comprising:
- a parser configured to be executed by a first thread of execution, the parser being further configured to identify one or more new elements in a document, to assign an identifier (ID) to each new element, and to store a copy of each new element in a first queue, the copy of each new element including the ID associated with the new element and at least one of text and structural information associated with the new element;
- and
- an error checker configured to be executed by a second thread of execution, the error checker being further configured to retrieve each copy of each new element from the first queue, apply error checking to each retrieved copy of each new element to detect errors associated therewith, and in response to detecting an error associated with a retrieved copy of a new element, generate an error checking result comprising at least the ID associated with the retrieved copy of the new element.
A method for performing error checking on a document, comprising:
- in a first thread of execution executing upon at least one of one or more processors, parsing the document to identify one or more new elements included therein and creating copies of the one or more new elements;
- and
- in a second thread of execution executing upon at least one of the one or more processors, applying error checking to the copies of the one or more new elements to generate error results corresponding to the one or more new elements.
Dependencies are inferred from the claim text.