Thread-local return structure for asynchronous state machine
AssigneeMicrosoft Technology Licensing, LLC
InventorsDavid Charles WRIGHTON, Jan KOTAS, Stephen Harris TOUB
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Technology Licensing, LLC
InventorsDavid Charles WRIGHTON, Jan KOTAS, Stephen Harris TOUB
Estimating the term…
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.
A method performed by a computing system for synchronously returning thread operation from an asynchronous function to a caller function using a return data structure so that the return data structure can be reused for future asynchronous function returns within the thread, the method comprising:
A computing system for synchronously returning operation from an asynchronous function to a caller function without allocating a return data structure in a heap of the computing system, the computing system comprising:
A computing program product for compiling intermediate code into binary code that is executable by a runtime comprising one or more hardware storage devices having stored thereon computer-executable instructions that are structured such that, when executed, the computer-executable instructions configure a computing system to perform at least:
Dependencies are inferred from the claim text.