openMSX
|
#include <EmuTimer.hh>
Public Member Functions | |
EmuTimer (Scheduler &scheduler, EmuTimerCallback &cb, byte flag, unsigned freq_num, unsigned freq_denom, int maxVal) | |
void | setValue (int value) |
void | setStart (bool start, EmuTime::param time) |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Public Member Functions inherited from openmsx::Schedulable | |
Schedulable (const Schedulable &)=delete | |
Schedulable (Schedulable &&)=delete | |
Schedulable & | operator= (const Schedulable &)=delete |
Schedulable & | operator= (Schedulable &&)=delete |
virtual void | schedulerDeleted () |
Just before the the Scheduler is deleted, it calls this method of all the Schedulables that are still registered. | |
Scheduler & | getScheduler () const |
EmuTime::param | getCurrentTime () const |
Convenience method: This is the same as getScheduler().getCurrentTime(). | |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Static Public Member Functions | |
static std::unique_ptr< EmuTimer > | createOPM_1 (Scheduler &scheduler, EmuTimerCallback &cb) |
static std::unique_ptr< EmuTimer > | createOPM_2 (Scheduler &scheduler, EmuTimerCallback &cb) |
static std::unique_ptr< EmuTimer > | createOPP_2 (Scheduler &scheduler, EmuTimerCallback &cb) |
static std::unique_ptr< EmuTimer > | createOPL3_1 (Scheduler &scheduler, EmuTimerCallback &cb) |
static std::unique_ptr< EmuTimer > | createOPL3_2 (Scheduler &scheduler, EmuTimerCallback &cb) |
static std::unique_ptr< EmuTimer > | createOPL4_1 (Scheduler &scheduler, EmuTimerCallback &cb) |
static std::unique_ptr< EmuTimer > | createOPL4_2 (Scheduler &scheduler, EmuTimerCallback &cb) |
Static Public Member Functions inherited from openmsx::Schedulable | |
template<typename Archive > | |
static std::vector< SyncPointBW > | serializeBW (Archive &ar) |
template<typename Archive > | |
static void | restoreOld (Archive &ar, std::vector< Schedulable * > schedulables) |
Additional Inherited Members | |
Protected Member Functions inherited from openmsx::Schedulable | |
Schedulable (Scheduler &scheduler) | |
~Schedulable () | |
void | setSyncPoint (EmuTime::param timestamp) |
bool | removeSyncPoint () |
void | removeSyncPoints () |
bool | pendingSyncPoint () const |
bool | pendingSyncPoint (EmuTime &result) const |
Definition at line 21 of file EmuTimer.hh.
openmsx::EmuTimer::EmuTimer | ( | Scheduler & | scheduler, |
EmuTimerCallback & | cb, | ||
byte | flag, | ||
unsigned | freq_num, | ||
unsigned | freq_denom, | ||
int | maxVal | ||
) |
Definition at line 59 of file EmuTimer.cc.
References openmsx::DynamicClock::setFreq().
|
static |
Definition at line 30 of file EmuTimer.cc.
|
static |
Definition at line 37 of file EmuTimer.cc.
|
static |
Definition at line 44 of file EmuTimer.cc.
|
static |
Definition at line 51 of file EmuTimer.cc.
|
static |
Definition at line 9 of file EmuTimer.cc.
|
static |
Definition at line 16 of file EmuTimer.cc.
|
static |
Definition at line 23 of file EmuTimer.cc.
void openmsx::EmuTimer::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 105 of file EmuTimer.cc.
void openmsx::EmuTimer::setStart | ( | bool | start, |
EmuTime::param | time | ||
) |
Definition at line 74 of file EmuTimer.cc.
void openmsx::EmuTimer::setValue | ( | int | value | ) |
Definition at line 69 of file EmuTimer.cc.