OTCancelSystemTask
Cancels a function you have scheduled to execute at system task time.C INTERFACE
Boolean OTCancelSystemTask(long stCookie)C++ INTERFACES
None. C++ applications use the C interface to this function.PARAMETERS
stCookie- A reference value that identifies the task to be canceled.
DESCRIPTION
TheOTCancelSystemTaskfunction cancels a task that was scheduled with theOTScheduleSystemTaskfunction to run at system task time. The function returnstrueif the scheduling was canceled. If the function returnsfalse, then either the function was not scheduled, or it is too late to cancel it. If thestCookieparameter value is invalid (a value of 0), the function returnsfalseand does nothing.SPECIAL CONSIDERATIONS
You can call this Open Transport function at interrupt time, but you must precede it by calling theOTEnterInterruptfunction and you must follow it by calling theOTLeaveInterruptfunction.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 destroy a system task created with the
OTCreateSystemTaskfunction, call theOTDestroySystemTaskfunction (page 7-13).Before making this call from within an interrupt, use the
OTEnterInterruptfunction (page 7-19).After you have made this call from within an an interrupt, use the
OTLeaveInterruptfunction (page 7-20).