Important: The information in this document is obsolete and should not be used for new development.
OTDestroyDeferredTask
Destroys a deferred task created with theOTCreateDeferredTaskfunction.C INTERFACE
OSStatus OTDestroyDeferredTask(long dtCookie)C++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
dtCookie- A reference that identifies the task to be destroyed.
- function result
- The function returns the result
kEAGAINErrwhen you try to destroy the task from within an interrupt service routine or within another deferred task. IfdtCookieis invalid (a value of 0), the function returnskOTNoErrorand does nothing.DISCUSSION
TheOTDestroyDeferredTaskfunction makes thedtCookiereference invalid and frees any resources allocated to the task when it was created. You can call this function at any time when you no longer need to schedule the deferred task object.SEE ALSO
TheOTCreateDeferredTaskfunction.The
OTScheduleDeferredTaskfunction.