MCPcopy Create free account
hub / github.com/DISTRHO/DPF / exec

Method exec

dgl/src/Application.cpp:174–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174void Application::exec(const uint idleTimeInMs)
175{
176 DISTRHO_SAFE_ASSERT_RETURN(pData->isStandalone,);
177
178#if defined(__EMSCRIPTEN__)
179 emscripten_set_main_loop_arg(app_idle, this, 0, true);
180#elif defined(DISTRHO_OS_MAC)
181 const CFTimeInterval idleTimeInSecs = static_cast<CFTimeInterval>(idleTimeInMs) / 1000;
182
183 while (! pData->isQuitting)
184 {
185 pData->idle(0);
186
187 if (CFRunLoopRunInMode(kCFRunLoopDefaultMode, idleTimeInSecs, true) == kCFRunLoopRunFinished)
188 break;
189 }
190#else
191 while (! pData->isQuitting)
192 pData->idle(idleTimeInMs);
193#endif
194}
195
196void Application::quit()
197{

Callers 12

puglMouseCallbackFunction · 0.80
puglTouchCallbackFunction · 0.80
puglWheelCallbackFunction · 0.80
PluginJackMethod · 0.80
exec_startMethod · 0.80
execFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

idleMethod · 0.45

Tested by

no test coverage detected