By using the lockThreadIn: aBlock protocol in the AcoResourceManager the developer specifies a series of standard asynchronous calls (for example, asyncCall) to be made in the same operating system thread. The protocol reserves a single thread for all the calls made in the scope of the block.The following is an example of standard asynchronous calls (dosBeep and getLastError) that are guaranteed to occur in the same thread:
|