MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / RunOnMain

Class RunOnMain

source/ui/mainui.cpp:87–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85static BaseView* currentView;
86
87class RunOnMain {
88public:
89 RunOnMain(std::function<bool()> f, U64 timeToRun) : f(f), timeToRun(timeToRun) {}
90
91 std::function<bool()> f;
92 U64 timeToRun;
93};
94
95std::list<RunOnMain> runOnMainFunctions;
96std::list<RunOnMain> runAfterFrameFunctions;

Callers 2

runOnMainUIFunction · 0.85
runAfterFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected