Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libsnes/bsnes/snes/scheduler/scheduler.hpp
2 views
1
struct Scheduler : property<Scheduler> {
2
enum class SynchronizeMode : unsigned { None, CPU, All } sync;
3
enum class ExitReason : unsigned { UnknownEvent, FrameEvent, SynchronizeEvent, DebuggerEvent };
4
readonly<ExitReason> exit_reason;
5
6
void clearExitReason() { exit_reason = ExitReason::UnknownEvent; }
7
8
cothread_t host_thread; //program thread (used to exit emulation)
9
cothread_t thread; //active emulation thread (used to enter emulation)
10
11
void enter();
12
void exit(ExitReason);
13
void debug();
14
15
void init();
16
Scheduler();
17
};
18
19
extern Scheduler scheduler;
20
21