Important: The information in this document is obsolete and should not be used for new development.
OTDestroyDeferredTask
Destroys a deferred task created with theOTCreateDeferredTask
function.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
kEAGAINErr
when you try to destroy the task from within an interrupt service routine or within another deferred task. IfdtCookie
is invalid (a value of 0), the function returnskOTNoError
and does nothing.DISCUSSION
TheOTDestroyDeferredTask
function makes thedtCookie
reference 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
TheOTCreateDeferredTask
function.The
OTScheduleDeferredTask
function.