openMSX
Public Types | Public Member Functions | Friends | List of all members
openmsx::Scheduler Class Reference

#include <Scheduler.hh>

Public Types

using SyncPoints = std::vector< SynchronizationPoint >
 

Public Member Functions

 Scheduler ()=default
 
 ~Scheduler ()
 
void setCPU (MSXCPU *cpu_)
 
EmuTime::param getCurrentTime () const
 Get the current scheduler time. More...
 
EmuTime::param getNext () const
 TODO. More...
 
void schedule (EmuTime::param limit)
 Schedule till a certain moment in time. More...
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Friends

class Schedulable
 

Detailed Description

Definition at line 33 of file Scheduler.hh.

Member Typedef Documentation

◆ SyncPoints

Definition at line 36 of file Scheduler.hh.

Constructor & Destructor Documentation

◆ Scheduler()

openmsx::Scheduler::Scheduler ( )
default

◆ ~Scheduler()

openmsx::Scheduler::~Scheduler ( )

Member Function Documentation

◆ getCurrentTime()

EmuTime::param openmsx::Scheduler::getCurrentTime ( ) const

◆ getNext()

EmuTime::param openmsx::Scheduler::getNext ( ) const
inline

TODO.

Definition at line 54 of file Scheduler.hh.

Referenced by openmsx::CPUClock::advanceTime(), and openmsx::CPUClock::enableLimit().

◆ schedule()

void openmsx::Scheduler::schedule ( EmuTime::param  limit)
inline

Schedule till a certain moment in time.

Definition at line 62 of file Scheduler.hh.

References openmsx::EmuTime, openmsx::SynchronizationPoint::serialize(), and unlikely.

◆ serialize()

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

Definition at line 128 of file Scheduler.cc.

◆ setCPU()

void openmsx::Scheduler::setCPU ( MSXCPU cpu_)
inline

Definition at line 41 of file Scheduler.hh.

Referenced by openmsx::MSXCPU::MSXCPU(), and openmsx::MSXCPU::~MSXCPU().

Friends And Related Function Documentation

◆ Schedulable

friend class Schedulable
friend

Definition at line 75 of file Scheduler.hh.


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