Important: The information in this document is obsolete and should not be used for new development.
RmvTime
Use theRmvTimeprocedure 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
TheRmvTimeprocedure removes the Time Manager task record specified bytmTaskPtrfrom 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), thetmCountfield 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 thetmCountfield (even if the delay was originally specified in milliseconds); otherwise, the unused time is reported in positive milliseconds. If the time has already expired,tmCountcontains 0.In the revised and extended Time Managers,
RmvTimesets the high-order bit of theqTypefield to 0.ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit forRmvTimeare:Registers on entry
A0 Address of the task recordRegisters on exitD0 Result codeRESULT CODES
noErr 0 No error