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
TheOTSetAsynchronous
function causes all functions for the provider specified in theref
parameter 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 theOTSetAsynchronous
function.You can call this function at any time and it will always succeed.
To set a provider to synchronous mode, call the
OTSetSynchronous
function. To find out a provider's current setting, call theOTIsSynchronous
function.SEE ALSO
"Specifying How Provider Functions Execute".