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


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

◆ ~Scheduler()

openmsx::Scheduler::~Scheduler ( )

Definition at line 23 of file

References to_vector().

Member Function Documentation

◆ getCurrentTime()

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

Get the current scheduler time.

Definition at line 82 of file

References openmsx::Thread::isMainThread().

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

◆ getNext()

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


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)

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

◆ setCPU()

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

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

Definition at line 73 of file Scheduler.hh.

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