OTCancelSynchronousCalls
Cancels any currently executing synchronous function for a specified provider.C INTERFACE
OSStatus OTCancelSynchronousCalls(ProviderRef ref);C++ INTERFACE
void TProvider::CancelSynchronousCalls(OSStatus err);PARAMETERS
ref- The provider reference for the provider whose synchronous function you want to cancel.
DESCRIPTION
TheOTCancelSynchronousCallsfunction cancels any currently executing synchronous function for the provider that you specify. The provider need not be in synchronous mode when you call this function.Typically, you would call the
OTCancelSynchronousCallsfunction at interrupt time by installing a Time Manager task that executes after a given amount of time has passed. You could do this to prevent a synchronous function from hanging the system.
- IMPORTANT
- The
OTCancelSynchronousCallsfunction may cause a provider to be unusable. Typically, once this call is made, the only thing you can do with the provider is close it. For example, calling theOTCancelSynchronousCallsfunction on a connection-oriented endpoint might break its connection and render the endpoint unusable.![]()
SEE ALSO
To set a provider to synchronous mode, call theOTSetSynchronousfunction (page 2-28). To find out a provider's current mode of execution, call theOTIsSynchronousfunction (page 2-30).Time Manager tasks are described in the Time Manager chapter of Inside Macintosh: Processes.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help