OTScheduleSystemTask
Schedules a task for execution at system task time.C INTERFACE
Boolean OTScheduleSystemTask(long stCookie)C++ INTERFACES
None. C++ applications use the C interface to this function.PARAMETERS
stCookie- A reference that identifies the task to be scheduled.
DESCRIPTION
TheOTScheduleSystemTaskfunction schedules for execution at system task time the task associated with thestCookieparameter, which is the reference returned by theOTCreateSystemTaskfunction.You can call this function at any time. If you have not yet destroyed a task, you can use this function to reschedule the same task again once it has executed. If you have canceled a task, you can use this function to schedule it again.
If you makes multiple calls to the
OTScheduleSystemTaskfunction before the task is executed, additional tasks are not scheduled; only one instance of each unique task can only be scheduled at a time.This function returns
trueif it scheduled the system task successfully,falseif not. If the function returnsfalseand thestCookieparameter has a valid value (other than 0), then the task is already scheduled to run. IfstCookieis 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 destroy a system task created with the
OTCreateSystemTaskfunction, call theOTDestroySystemTaskfunction (page 7-13).To cancel a task scheduled for execution at system task time, call the
OTCancelSystemTaskfunction (page 7-12).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).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help