openMSX
Public Member Functions | Friends | List of all members
openmsx::ThrottleManager Class Referencefinal

Manages the throttle state of openMSX. More...

#include <ThrottleManager.hh>

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

Public Member Functions

 ThrottleManager (CommandController &commandController)
 
 ~ThrottleManager ()
 
bool isThrottled () const
 Ask if throttling is enabled. More...
 
- Public Member Functions inherited from openmsx::Subject< ThrottleManager >
void attach (Observer< ThrottleManager > &observer)
 
void detach (Observer< ThrottleManager > &observer)
 

Friends

class LoadingIndicator
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::Subject< ThrottleManager >
 Subject ()
 
 ~Subject ()
 
void notify () const
 

Detailed Description

Manages the throttle state of openMSX.

It depends on the throttle setting, but also on the fullspeedwhenfastloading setting and if the MSX has notified us that it is loading... If you want to know about the throttle status of openMSX, attach to me! (And not just to throttleSetting!)

Definition at line 17 of file ThrottleManager.hh.

Constructor & Destructor Documentation

◆ ThrottleManager()

openmsx::ThrottleManager::ThrottleManager ( CommandController commandController)
explicit

Definition at line 7 of file ThrottleManager.cc.

References openmsx::Subject< T >::attach().

◆ ~ThrottleManager()

openmsx::ThrottleManager::~ThrottleManager ( )

Member Function Documentation

◆ isThrottled()

bool openmsx::ThrottleManager::isThrottled ( ) const
inline

Ask if throttling is enabled.

Depends on the throttle setting, but also on the fullspeedwhenfastloading setting and if the MSX has notified us that it is loading... To be used for the timing.

Definition at line 29 of file ThrottleManager.hh.

Referenced by openmsx::RealTime::timeLeft(), and openmsx::SDLSoundDriver::uploadBuffer().

Friends And Related Function Documentation

◆ LoadingIndicator

friend class LoadingIndicator
friend

Definition at line 32 of file ThrottleManager.hh.


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