Invention Grant
- Patent Title: Thread-local return structure for asynchronous state machine
-
Application No.: US17002579Application Date: 2020-08-25
-
Publication No.: US11435989B2Publication Date: 2022-09-06
- Inventor: David Charles Wrighton , Jan Kotas , Stephen Harris Toub
- 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: Workman Nydegger
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F8/41 ; G06F9/52

Abstract:
Reuse of a thread-local return data structure to prevent a return data structure from being allocated every time asynchronous functions return. The system returns thread operation from the asynchronous function back to the caller function in a manner that the return data structure can be reused for future asynchronous function returns within that same thread. To do so, the system first accesses data that was generated by the asynchronous function in response to the caller function placing the function call to the asynchronous function. To determine if reuse is appropriate, the system determines that the caller function will use the return data structure as populated only once. If so, the system populates the reusable thread-local return data structure and returns that data structure to the caller.
Public/Granted literature
- US20220066759A1 THREAD-LOCAL RETURN STRUCTURE FOR ASYNCHRONOUS STATE MACHINE Public/Granted day:2022-03-03
Information query