Important: The information in this document is obsolete and should not be used for new development.
RmvTime
Use theRmvTime
procedure to remove a task from the Time Manager queue.
PROCEDURE RmvTime (tmTaskPtr: QElemPtr);
tmTaskPtr
- A pointer to a task record to be removed from the queue.
DESCRIPTION
TheRmvTime
procedure removes the Time Manager task record specified bytmTaskPtr
from the Time Manager queue. In both the revised and extended Time Managers, if the specified task record is active (that is, if it has been activated but the specified time has not yet elapsed), thetmCount
field of the task record returns the amount of time remaining. To provide the greatest accuracy, the unused time is reported as negated microseconds if that value is small enough to fit into thetmCount
field (even if the delay was originally specified in milliseconds); otherwise, the unused time is reported in positive milliseconds. If the time has already expired,tmCount
contains 0.In the revised and extended Time Managers,
RmvTime
sets the high-order bit of theqType
field to 0.ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit forRmvTime
are:Registers on entry
A0 Address of the task recordRegisters on exitD0 Result codeRESULT CODES
noErr 0 No error