openMSX
Public Member Functions | Static Public Member Functions | List of all members
openmsx::EmuTimer Class Referencefinal

#include <EmuTimer.hh>

Inheritance diagram for openmsx::EmuTimer:
Inheritance graph
[legend]
Collaboration diagram for openmsx::EmuTimer:
Collaboration graph
[legend]

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
 
Schedulableoperator= (const Schedulable &)=delete
 
Schedulableoperator= (Schedulable &&)=delete
 
virtual void schedulerDeleted ()
 Just before the the Scheduler is deleted, it calls this method of all the Schedulables that are still registered.
 
SchedulergetScheduler () 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< EmuTimercreateOPM_1 (Scheduler &scheduler, EmuTimerCallback &cb)
 
static std::unique_ptr< EmuTimercreateOPM_2 (Scheduler &scheduler, EmuTimerCallback &cb)
 
static std::unique_ptr< EmuTimercreateOPP_2 (Scheduler &scheduler, EmuTimerCallback &cb)
 
static std::unique_ptr< EmuTimercreateOPL3_1 (Scheduler &scheduler, EmuTimerCallback &cb)
 
static std::unique_ptr< EmuTimercreateOPL3_2 (Scheduler &scheduler, EmuTimerCallback &cb)
 
static std::unique_ptr< EmuTimercreateOPL4_1 (Scheduler &scheduler, EmuTimerCallback &cb)
 
static std::unique_ptr< EmuTimercreateOPL4_2 (Scheduler &scheduler, EmuTimerCallback &cb)
 
- Static Public Member Functions inherited from openmsx::Schedulable
template<typename Archive >
static std::vector< SyncPointBWserializeBW (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
 

Detailed Description

Definition at line 21 of file EmuTimer.hh.

Constructor & Destructor Documentation

◆ EmuTimer()

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().

Member Function Documentation

◆ createOPL3_1()

unique_ptr< EmuTimer > openmsx::EmuTimer::createOPL3_1 ( Scheduler scheduler,
EmuTimerCallback cb 
)
static

Definition at line 30 of file EmuTimer.cc.

◆ createOPL3_2()

unique_ptr< EmuTimer > openmsx::EmuTimer::createOPL3_2 ( Scheduler scheduler,
EmuTimerCallback cb 
)
static

Definition at line 37 of file EmuTimer.cc.

◆ createOPL4_1()

unique_ptr< EmuTimer > openmsx::EmuTimer::createOPL4_1 ( Scheduler scheduler,
EmuTimerCallback cb 
)
static

Definition at line 44 of file EmuTimer.cc.

◆ createOPL4_2()

unique_ptr< EmuTimer > openmsx::EmuTimer::createOPL4_2 ( Scheduler scheduler,
EmuTimerCallback cb 
)
static

Definition at line 51 of file EmuTimer.cc.

◆ createOPM_1()

unique_ptr< EmuTimer > openmsx::EmuTimer::createOPM_1 ( Scheduler scheduler,
EmuTimerCallback cb 
)
static

Definition at line 9 of file EmuTimer.cc.

◆ createOPM_2()

unique_ptr< EmuTimer > openmsx::EmuTimer::createOPM_2 ( Scheduler scheduler,
EmuTimerCallback cb 
)
static

Definition at line 16 of file EmuTimer.cc.

◆ createOPP_2()

unique_ptr< EmuTimer > openmsx::EmuTimer::createOPP_2 ( Scheduler scheduler,
EmuTimerCallback cb 
)
static

Definition at line 23 of file EmuTimer.cc.

◆ serialize()

template<typename Archive >
void openmsx::EmuTimer::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 105 of file EmuTimer.cc.

◆ setStart()

void openmsx::EmuTimer::setStart ( bool  start,
EmuTime::param  time 
)

Definition at line 74 of file EmuTimer.cc.

◆ setValue()

void openmsx::EmuTimer::setValue ( int  value)

Definition at line 69 of file EmuTimer.cc.


The documentation for this class was generated from the following files: