MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / loop

Method loop

src/gui2/imhex_overrides/splash_window.cpp:353–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351 }
352
353 std::optional<bool> WindowSplash::loop() {
354 // Splash window rendering loop
355 this->fullFrame();
356
357 // Check if all background tasks have finished so the splash screen can be closed
358 if (m_tasksSucceeded.wait_for(0s) == std::future_status::ready) {
359 if (m_tasksSucceeded.get()) {
360 log::debug("All tasks finished successfully!");
361 return true;
362 } else {
363 log::warn("All tasks finished, but some failed");
364 return false;
365 }
366 }
367
368 return std::nullopt;
369 }
370
371 void WindowSplash::initGLFW() {
372 glfwSetErrorCallback([](int errorCode, const char *desc) {

Callers

nothing calls this directly

Calls 2

fullFrameMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected