发明名称 TECHNIQUES FOR SWITCHING THREADS WITHIN ROUTINES
摘要 Various technologies and techniques are disclosed for switching threads within routines. A controller routine receives a request from an originating routine to execute a coroutine, and executes the coroutine on an initial thread. The controller routine receives a response back from the coroutine when the coroutine exits based upon a return statement. Upon return, the coroutine indicates a subsequent thread that the coroutine should be executed on when the coroutine is executed a subsequent time. The controller routine executes the coroutine the subsequent time on the subsequent thread. The coroutine picks up execution at a line of code following the return statement. Multiple return statements can be included in the coroutine, and the threads can be switched multiple times using this same approach. Graphical user interface logic and worker thread logic can be co-mingled into a single routine.
申请公布号 WO2009055494(A2) 申请公布日期 2009.04.30
申请号 WO2008US80825 申请日期 2008.10.22
申请人 MICROSOFT CORPORATION 发明人 CWALINA, KRYSZTOF
分类号 G06F9/38 主分类号 G06F9/38
代理机构 代理人
主权项
地址