APPARATUS, SYSTEM, AND METHOD FOR EXECUTING FUNCTIONS IN AN EVENT DRIVEN ENVIRONMENT FROM A CO-ROUTINE ENVIRONMENT
First Claim
1. An apparatus to execute a function in a first environment from a second:
- environment, the apparatus comprising;
a bridge module configured to store parameters and a proxy function pointer for a proxy function in a bridge structure for a second context executing in the second environment, the proxy function configured to execute in the first environment, and to store a bridge pointer for the bridge structure in a bridge pointer register of a first context structure that stores a first context state for a first context configured to execute in the first environment;
a swap context module configured to swap to the first context;
an execute module configured to retrieve the proxy function pointer from the bridge structure using the bridge pointer if the bridge pointer register is not null, execute the proxy function, and store the results of the proxy function in the bridge structure; and
the swap context module further configured to swap to the second context.
1 Assignment
0 Petitions
Accused Products
Abstract
An apparatus, system, and method are disclosed for executing functions in an event driven environment. A bridge module stores parameters and a proxy function pointer for a proxy function in a bridge structure for a co-routine context executing in a co-routine environment. The proxy function is configured to execute in an event driven environment. The bridge module also stores a bridge pointer for the bridge structure in a bridge pointer register of an event driven context structure. A swap context module swaps to the event driven context. An execute module retrieves the proxy function pointer from the bridge structure using the bridge pointer if the bridge pointer register is not null, executes the proxy function, and stores the results of the proxy function in the bridge structure.
15 Citations
20 Claims
-
1. An apparatus to execute a function in a first environment from a second:
- environment, the apparatus comprising;
a bridge module configured to store parameters and a proxy function pointer for a proxy function in a bridge structure for a second context executing in the second environment, the proxy function configured to execute in the first environment, and to store a bridge pointer for the bridge structure in a bridge pointer register of a first context structure that stores a first context state for a first context configured to execute in the first environment; a swap context module configured to swap to the first context; an execute module configured to retrieve the proxy function pointer from the bridge structure using the bridge pointer if the bridge pointer register is not null, execute the proxy function, and store the results of the proxy function in the bridge structure; and the swap context module further configured to swap to the second context. - View Dependent Claims (2, 3, 4, 5, 6, 7)
- environment, the apparatus comprising;
-
8. A computer program product comprising a computer useable medium having a computer readable program, wherein the computer readable program when executed on a computer causes the computer to:
-
store parameters and a proxy function pointer for a proxy function in a bridge structure while executing a second context in a second environment, the proxy function configured to execute in a first environment; store a bridge pointer for the bridge structure in a bridge pointer register of a first context structure that stores a first context state for a first context configured to execute in the first environment; swap to the first context; retrieve the proxy function pointer from the bridge structure using the bridge pointer if the bridge pointer register is not null; execute the proxy function; store the results of the proxy function in the bridge structure; and swap to the second context. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A system to execute a function in an event driven environment from a co-routine environment, the system comprising:
-
a processor module configured to execute software processes; a memory module configured to store the software processes, the software processes comprising a context structure module configured to create an event driven context structure and a co-routine context structure; a bridge module configured to store parameters and a proxy function pointer for a proxy function in a bridge structure for a co-routine context executing in the co-routine environment, the proxy function configured to execute in the event driven environment, and to store a bridge pointer for the bridge structure in a bridge pointer register of the event driven context structure that stores an event driven context state for an event driven context configured to execute in the event driven environment; a swap context module configured to swap to the event driven context; an execute module configured to retrieve the proxy function pointer from the bridge structure using the bridge pointer if the bridge pointer register is not null, execute the proxy function, and store the results of the proxy function in the bridge structure; and the swap context module further configured to swap to the co-routine context. - View Dependent Claims (16, 17, 18, 19)
-
-
20. A method for deploying computer infrastructure, comprising integrating computer-readable code into a computing system, wherein the code in combination with the computing system is capable of performing the following:
-
creating an event driven context structure and a co-routine context structure; storing parameters and a proxy function pointer for a proxy function in a bridge structure while executing a co-routine context in a co-routine environment, the proxy function configured to execute in an event driven environment; storing a bridge pointer for the bridge structure in a bridge pointer register of the event driven context structure that stores an event driven context state for an event driven context configured to execute in the event driven environment; swapping to the event driven context; retrieving the proxy function pointer from the bridge structure using the bridge pointer if the bridge pointer register is not null; executing the proxy function; storing the results of the proxy function in the bridge structure; and swapping to the co-routine context.
-
Specification