发明名称 AMBIENT STATE FOR ASYNCHRONOUS METHODS
摘要 A method of providing asynchronous programming support at run time for scope-based ambient state at a method call is disclosed. In response to the method call, an asynchronous method stack frame is created along with ambient state for the asynchronous method call. In one example of the method, a current frame of a method stack is captured. A new frame is instantiated by setting a previous reference of the new frame to the current frame and moving data from the previous frame into the current frame. One example of instantiating the new frame includes pushing the current frame onto the stack. In another example, the new frame is lazily created when changes have been made. A state machine used to transform the synchronously-created method into an asynchronous method is moved from a current state to a next state. The captured frame is restored.
申请公布号 US2013104148(A1) 申请公布日期 2013.04.25
申请号 US201113277762 申请日期 2011.10.20
申请人 TORGERSEN MADS;TOUB STEPHEN H.;EILEBRECHT ERIC L.;MICROSOFT CORPORATION 发明人 TORGERSEN MADS;TOUB STEPHEN H.;EILEBRECHT ERIC L.
分类号 G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项
地址