|
libsidplayfp
1.0.3
|
#include <EventScheduler.h>
Public Member Functions | |
| void | reset () |
| void | clock () |
| bool | isPending (Event &event) const |
| event_clock_t | getTime (event_phase_t phase) const |
| event_clock_t | getTime (event_clock_t clock, event_phase_t phase) const |
| event_phase_t | phase () const |
Protected Member Functions | |
| void | schedule (Event &event, event_clock_t cycles, event_phase_t phase) |
| void | schedule (Event &event, event_clock_t cycles) |
| void | cancel (Event &event) |
Fast EventScheduler implementation
| void EventScheduler::cancel | ( | Event & | event | ) | [protected, virtual] |
| void EventScheduler::clock | ( | ) | [inline] |
Fire next event, advance system time to that event.
| event_clock_t EventScheduler::getTime | ( | event_phase_t | phase | ) | const [inline, virtual] |
Get time with respect to a specific clock phase.
| phase | the phase |
Implements EventContext.
| event_clock_t EventScheduler::getTime | ( | event_clock_t | clock, |
| event_phase_t | phase | ||
| ) | const [inline, virtual] |
Get clocks since specified clock in given phase.
| clock | the time to compare to |
| phase | the phase to comapre to |
Implements EventContext.
| bool EventScheduler::isPending | ( | Event & | event | ) | const [virtual] |
Is the event pending in this scheduler?
| event | the event |
Implements EventContext.
| event_phase_t EventScheduler::phase | ( | ) | const [inline, virtual] |
| void EventScheduler::reset | ( | ) |
Cancel all pending events and reset time.
| void EventScheduler::schedule | ( | Event & | event, |
| event_clock_t | cycles, | ||
| event_phase_t | phase | ||
| ) | [inline, protected, virtual] |
Add event to pending queue.
At PHI2, specify cycles=0 and Phase=PHI1 to fire on the very next PHI1.
| event | the event to add |
| cycles | how many cycles from now to fire |
| phase | the phase when to fire the event |
Implements EventContext.
| void EventScheduler::schedule | ( | Event & | event, |
| event_clock_t | cycles | ||
| ) | [inline, protected, virtual] |
Add event to pending queue in the same phase as current event.
| event | the event to add |
| cycles | how many cycles from now to fire |
Implements EventContext.
1.7.6.1