Patent ID: 8176492

Claim:
A program disposed on a non-transitory computer readable storage medium, the program comprising: a main program having, a first routine for issuing commands in an asynchronous manner, and a second routine for determining whether the commands have been completed in an asynchronous manner, an auxiliary program for adapting the main program to behave in a synchronous manner, by, a) receiving control from the first routine and setting a flag, b) waiting a specified period of time with a wait routine, c) passing control to the second routine to determine whether any of the commands have been completed during the specified period of time, d) receiving control back from the second routine, e) determining whether all of the commands have been completed, f) selectively clearing the flag when all of the commands have been completed, g) checking whether the flag is still set, h) returning to step b) when the flag is still set, and i) ending when the flag has been cleared.