Important: The information in this document is obsolete and should not be used for new development.
SystemTask
In a multiple-application environment, theWaitNextEvent
function is responsible for giving time to each open desk accessory or driver to perform any periodic action. You should not callSystemTask
if your application callsWaitNextEvent
.If your application calls
GetNextEvent
, your application should call theSystemTask
procedure.
PROCEDURE SystemTask;DESCRIPTION
TheSystemTask
procedure gives time to each open desk accessory or driver to
perform the periodic action defined for it. A desk accessory or device driver specifies how often the periodic action should occur, andSystemTask
gives time to the desk accessory or device driver at the appropriate interval.If your application calls
GetNextEvent
, your application should callSystemTask
at least every sixtieth of a second. This usually corresponds to callingSystemTask
once each time through your event loop. If your application does a large amount of processing, you may need to callSystemTask
more than once in your event loop.SEE ALSO
For a description of theWaitNextEvent
function and theGetNextEvent
function, see page 2-85 and page 2-89, respectively.