mirror of
https://github.com/rodamaral/lsnes.git
synced 2025-04-02 10:42:15 -04:00
16 lines
481 B
C++
Executable file
16 lines
481 B
C++
Executable file
struct Scheduler : property<Scheduler> {
|
|
enum class SynchronizeMode : unsigned { None, PPU, All } sync;
|
|
enum class ExitReason : unsigned { UnknownEvent, FrameEvent, SynchronizeEvent };
|
|
readonly<ExitReason> exit_reason;
|
|
|
|
cothread_t host_thread; //program thread (used to exit emulation)
|
|
cothread_t thread; //active emulation thread (used to enter emulation)
|
|
|
|
void enter();
|
|
void exit(ExitReason);
|
|
|
|
void power();
|
|
void reset();
|
|
};
|
|
|
|
extern Scheduler scheduler;
|