Back to results
US 11,442,715 B1Granted
Asynchronous framework
AssigneeSeagate Technology LLC
InventorAnatolii Bilenko
Life of this patent
Estimating the term…
Abstract
A framework, method, and system for generating asynchronous code from state machines coded in a synchronous manner are described. The code is pre-processed into asynchronous code based on the framework prior to compilation thereof. The framework may include various structures and functions such as a save structure, a reentry function, a block wrapping function and a yield identification function.
Claims19
A method of compiling code comprising:
- providing a framework to generate asynchronous programming code comprising:
- a save structure to save a present state of a state machine coded in a synchronous manner,
- a reentry function to restore the present state of the state machine from the save structure,
- a block wrapping function to wrap over potentially-blocking functions of the state machine, and
- a yield identification function to identify blocking points within the state machine;
- providing code comprising a least one state machine coded in a synchronous manner using the framework;
- pre-processing the code using the framework to translate the code into asynchronous code;
- and
- compiling the asynchronous code into an executable program.
6 more elements
A system for use in compiling code comprising:
- a memory to store data;
- and
- a computing apparatus comprising one or more processors and operably coupled to the memory, the computing apparatus configured to:
- provide a framework to generate asynchronous programming code comprising:
- a save structure to save a present state of a state machine coded in a synchronous manner,
- a reentry function to restore the present state of the state machine from the save structure,
- a block wrapping function to wrap over potentially-blocking functions of the state machine, and
- a yield identification function to identify blocking points within the state machine;
- provide code comprising a least one state machine coded in a synchronous manner using the framework;
- pre-process the code using the framework to translate the code into asynchronous code;
- and
- compile the asynchronous code into an executable program.
9 more elements
A framework for use in generating asynchronous programming code comprising:
- a save structure to save a present state of a state machine coded in a synchronous manner;
- a reentry function to restore the present state of the state machine from the save structure;
- a block wrapping function to wrap over potentially-blocking functions of the state machine;
- and
- a yield identification function to identify blocking points within the state machine;
- wherein the framework is usable to provide code comprising a least one state machine coded in a synchronous manner;
- wherein the save structure, the reentry function, the block wrapping function, and the yield function are usable by a pre-processing method to generate asynchronous programming code from the state machine coded in a synchronous manner;
- wherein the asynchronous programming code is usable by a compiler to compile an executable program.
5 more elements
Dependencies are inferred from the claim text.