Important: The information in this document is obsolete and should not be used for new development.
SystemTask
In a multiple-application environment, theWaitNextEventfunction is responsible for giving time to each open desk accessory or driver to perform any periodic action. You should not callSystemTaskif your application callsWaitNextEvent.If your application calls
GetNextEvent, your application should call theSystemTaskprocedure.
PROCEDURE SystemTask;DESCRIPTION
TheSystemTaskprocedure 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, andSystemTaskgives time to the desk accessory or device driver at the appropriate interval.If your application calls
GetNextEvent, your application should callSystemTaskat least every sixtieth of a second. This usually corresponds to callingSystemTaskonce each time through your event loop. If your application does a large amount of processing, you may need to callSystemTaskmore than once in your event loop.SEE ALSO
For a description of theWaitNextEventfunction and theGetNextEventfunction, see page 2-85 and page 2-89, respectively.