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.
 
EmuTime::param getNext () const
 TODO.
 
void schedule (EmuTime::param limit)
 Schedule till a certain moment in time.
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Friends

class Schedulable
 

Detailed Description

Definition at line 32 of file Scheduler.hh.

Member Typedef Documentation

◆ SyncPoints

Definition at line 35 of file Scheduler.hh.

Constructor & Destructor Documentation

◆ Scheduler()

openmsx::Scheduler::Scheduler ( )
default

◆ ~Scheduler()

openmsx::Scheduler::~Scheduler ( )

Definition at line 23 of file Scheduler.cc.

References to_vector().

Member Function Documentation

◆ getCurrentTime()

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

Get the current scheduler time.

Definition at line 82 of file Scheduler.cc.

References openmsx::Thread::isMainThread().

Referenced by openmsx::Schedulable::getCurrentTime().

◆ getNext()

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

TODO.

Definition at line 53 of file Scheduler.hh.

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

◆ schedule()

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

Schedule till a certain moment in time.

Definition at line 61 of file Scheduler.hh.

References getNext().

◆ serialize()

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

Definition at line 124 of file Scheduler.cc.

◆ setCPU()

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

Definition at line 40 of file Scheduler.hh.

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

Friends And Related Symbol Documentation

◆ Schedulable

friend class Schedulable
friend

Definition at line 73 of file Scheduler.hh.


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