MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / wakeEventLoop

Method wakeEventLoop

src/visualizer/window/window_manager.cpp:528–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526 }
527
528 void WindowManager::wakeEventLoop() {
529 if (!SDL_WasInit(SDL_INIT_EVENTS)) {
530 return;
531 }
532
533 // Wake SDL_WaitEventTimeout so queued viewer-thread work is serviced promptly.
534 SDL_Event event{};
535 event.type = SDL_EVENT_USER;
536 SDL_PushEvent(&event);
537 }
538
539 void WindowManager::processEvent(const SDL_Event& event) {
540 const SDL_WindowID main_window_id = window_ ? SDL_GetWindowID(window_) : 0;

Callers 9

wakeEventLoopViaServicesFunction · 0.80
wakeMainLoopMethod · 0.80
enqueueModalMethod · 0.80
startColmapExportMethod · 0.80
startAsyncExportMethod · 0.80
dispatchToolbarActionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected