Carbon


TMTask

Header: Timer.h

struct TMTask {
    QElemPtr qLink; 
    SInt16 qType; 
    TimerUPP tmAddr; 
    SInt32 tmCount; 
    SInt32 tmWakeUp; 
    SInt32 tmReserved;
};
typedef TMTask TMTaskPtr;

Field descriptions

qLink

A pointer to the next element in the Time Manager queue. This field is used internally by the Time Manager.

qType

The type of queue. The Time Manager automatically sets this field to the appropriate value. The high-order bit of this field is a flag that indicates whether the task is active.

tmAddr

A pointer to the function that is to be executed after the delay specified in a call to PrimeTime.

tmCount

Reserved in the original Time Manager. In the revised or extended Time Manager, the amount of time remaining until the task’s scheduled execution time; this field is valid only after you call RmvTime with a task that has not yet executed.

tmWakeUp

In the extended Time Manager, the time when the task specified in the tmAddr field was last executed. This field is used internally by the Time Manager. You should set it to 0 when you first install a task structure.

tmReserved

Reserved.

All Time Manager functions require that you pass the address of a Time Manager task structure, defined by the TMTask data type.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)