×

Methods for transparent management of context and state in an asynchronous callback flow

  • US 9,262,156 B2
  • Filed: 02/12/2014
  • Issued: 02/16/2016
  • Est. Priority Date: 02/12/2014
  • Status: Active Grant
First Claim
Patent Images

1. A computerized method for providing at least one memory value present in computer memory during execution of a program procedure to be automatically available to an asynchronous callback procedure executed later, comprising:

  • receiving a code containing at least one program procedure, said at least one program procedure having at least one input parameter to be executed as an asynchronous callback procedure;

    replacing said at least one program procedure in said code with at least one wrapper procedure, where each of said at least one wrapper procedure comprises instructions for;

    storing at least one memory value available to said asynchronous callback procedure prior to execution of said asynchronous callback procedure;

    storing said asynchronous callback procedure of said at least one input parameter;

    replacing each of said at least one input parameter with a wrapper callback procedure, said wrapper callback procedure comprising instructions for restoring said at least one memory value and then executing said asynchronous callback procedure; and

    executing said at least one program procedure;

    executing said code with said at least one wrapper procedure, providing said at least one memory value present during execution of said program procedure to be automatically available to said asynchronous callback procedure executed later,wherein execution of said asynchronous callback procedure initiates execution of at least one additional callback procedure, and each of said at least one additional callback procedure is performed by execution of corresponding said wrapper callback procedure which restores said at least one memory value prior to execution of said at least one additional callback procedure.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×