OTDestroySystemTask
Destroys a system task created with theOTCreateSystemTaskfunction.C INTERFACE
OSStatus OTDestroySystemTask(long stCookie)C++ INTERFACES
None. C++ applications use the C interface to this function.PARAMETERS
stCookie- A reference value that identifies the system task to be destroyed.
DESCRIPTION
TheOTDestroySystemTaskfunction makes thestCookiereference invalid and frees any resources allocated to the task when it was created. You can call this function when you no longer need to schedule the system task, such as when it has already been executed at its scheduled time and you have no plans to reschedule it for later use. IfstCookieis already invalid (a value of 0), the function returnskOTNoErrorand does nothing.If you try to destroy a task that is still scheduled for execution, the
OTDestroySystemTaskfunction cancels it first, so that it is no longer scheduled for system task execution, and then destroys it. If the task has already been canceled, theOTDestroySystemTaskfunction simply destroys it.SEE ALSO
To create a system task, call theOTCreateSystemTaskfunction (page 7-9).To schedule a task for execution at system task time, call the
OTScheduleSystemTaskfunction (page 7-10).To cancel a task scheduled for execution at system task time, call the
OTCancelSystemTaskfunction (page 7-12).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help