bsnes/gba/scheduler/scheduler.hpp

17 lines
372 B
C++
Raw Normal View History

struct Scheduler : property<Scheduler> {
enum class SynchronizeMode : unsigned { None, CPU, All } sync;
enum class ExitReason : unsigned { UnknownEvent, FrameEvent, SynchronizeEvent };
readonly<ExitReason> exit_reason;
cothread_t host;
cothread_t active;
void enter();
void exit(ExitReason);
void power();
Scheduler();
};
extern Scheduler scheduler;