Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 23 - Programming With Open Transport Reference / Functions
Working With Timer Tasks /


OTScheduleTimerTask

Schedules a timer task to be executed at the specified time.

C INTERFACE
pascal Boolean OTScheduleTimerTask(long timerTask, 
                     OTTimeout milliSeconds);
C++ INTERFACES
None. C++ applications use the C interface to this function.

PARAMETERS
timerTask
A 32-bit value identifying the task you want to schedule. This is the value returned by the OTCreateTimerTask when you created the task.
OTTimeout
The time, in milliseconds, that should elapse between when you call OTScheduleTimerTask and when the function executes.
function result
The result is true if the timer task is scheduled.
DISCUSSION
The OTScheduleTimerTask schedules the execution of a task created with the OTCreateTimerTask function.

WARNING
Calling this function periodially to schedule a task will cause drift.
SEE ALSO
The OTCancelTimerTask function.

The OTDestroyTimerTask function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998