openMSX
|
Manages the throttle state of openMSX. More...
#include <ThrottleManager.hh>
Public Member Functions | |
ThrottleManager (CommandController &commandController) | |
~ThrottleManager () | |
bool | isThrottled () const |
Ask if throttling is enabled. | |
auto & | getFullSpeedLoadingSetting () |
Public Member Functions inherited from openmsx::Subject< ThrottleManager > | |
Subject (const Subject &)=delete | |
Subject (Subject &&)=delete | |
Subject & | operator= (const Subject &)=delete |
Subject & | operator= (Subject &&)=delete |
void | attach (Observer< ThrottleManager > &observer) |
void | detach (Observer< ThrottleManager > &observer) |
bool | anyObservers () const |
Friends | |
class | LoadingIndicator |
Additional Inherited Members | |
Protected Member Functions inherited from openmsx::Subject< ThrottleManager > | |
Subject ()=default | |
~Subject () | |
void | notify () const |
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.
|
explicit |
Definition at line 7 of file ThrottleManager.cc.
References openmsx::Subject< T >::attach().
openmsx::ThrottleManager::~ThrottleManager | ( | ) |
Definition at line 19 of file ThrottleManager.cc.
References openmsx::Subject< T >::detach().
|
inline |
Definition at line 31 of file ThrottleManager.hh.
|
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::PixelRenderer::frameStart(), and openmsx::SDLSoundDriver::uploadBuffer().
|
friend |
Definition at line 34 of file ThrottleManager.hh.