Invention Grant
- Patent Title: Techniques for switching threads within routes
-
Application No.: US16018427Application Date: 2018-06-26
-
Publication No.: US10698726B2Publication Date: 2020-06-30
- Inventor: Krzysztof Cwalina
- Applicant: Microsoft Technology Licensing, LLC
- Applicant Address: US WA Redmond
- Assignee: Microsoft Technology Licensing, LLC
- Current Assignee: Microsoft Technology Licensing, LLC
- Current Assignee Address: US WA Redmond
- Agency: Dicke, Billig & Czaja, PLLC
- Main IPC: G06F9/48
- IPC: G06F9/48 ; G06F9/50 ; G06F9/46 ; G06F9/448

Abstract:
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.
Public/Granted literature
- US20190138347A1 TECHNIQUES FOR SWITCHING THREADS WITHIN ROUTINES Public/Granted day:2019-05-09
Information query