#include <LPeriodical.h>
Collaboration diagram for LPeriodical:

On Mac, DevoteTimeToIdlers is called by LApplication on every null event and DevoteTimeToRepeaters by LApplication after every event, to iterate the static queues. (LApplication::ProcessNextEvent calls LEventDispatcher::UseIdleTime which then calls DevoteTimeToIdlers).
In PP2MFC we use an override of CWinApp::OnIdle to trigger these calls.
Implement Timers
Public Methods | |
| LPeriodical () | |
| virtual | ~LPeriodical () |
| virtual void | StartIdling () |
| virtual void | StopIdling () |
| virtual void | StartRepeating () |
| virtual void | StopRepeating () |
| bool | IsIdling () const |
| virtual void | SpendTime (const EventRecord &inMacEvent)=0 |
| Required override to perform callback action. | |
Static Public Methods | |
| void | DevoteTimeToIdlers (const EventRecord &inMacEvent) |
| void | DevoteTimeToRepeaters (const EventRecord &inMacEvent) |
| void | DeleteIdlerAndRepeaterQueues () |
| Cleanup the queues but require application to delete the objects they point to. | |
| void | DeleteAllIdlers () |
| void | DeleteAllRepeaters () |
Static Protected Attributes | |
| TArray< LPeriodical * > * | sIdlerQ |
| TArray< LPeriodical * > * | sRepeaterQ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cleanup the queues but require application to delete the objects they point to. Applications may wish to make use of our convenient DeleteAllIdlers and DeleteAllRepeaters methods. Unlike the casual attitude in the PowerPlant comments, it is not just a matter of waiting for the application cleanup in the system heap - many Windows programmers are contractually obligated to pass zero-leak tests. See p2mApp::~p2mApp
|
|
|
|
|
|
|
|
|
|
|
|
Required override to perform callback action.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.17