Important: The information in this document is obsolete and should not be used for new development.
OTSetAsynchronous
Sets a provider to asynchronous mode.C INTERFACE
OSStatus OTSetAsynchronous(ProviderRef ref);C++ INTERFACE
OSStatus TProvider::SetAsynchronous();PARAMETERS
ref- The provider reference of the provider which you want to set to asynchronous mode..
- function result
- An error code. See Appendix B for more information.
DISCUSSION
TheOTSetAsynchronousfunction causes all functions for the provider specified in therefparameter to run asynchronously. You should install a notifier function for the provider to receive completion and other events. You can install a notifier function either before or after calling theOTSetAsynchronousfunction.You can call this function at any time and it will always succeed.
To set a provider to synchronous mode, call the
OTSetSynchronousfunction. To find out a provider's current setting, call theOTIsSynchronousfunction.SEE ALSO
"Specifying How Provider Functions Execute".