4 ms·
What are the technical details behind how it avoids creating an event loop? Is it just creating a UI thread that is doing the event loop work in the background?
by vlovich123 6y ago
What are the technical details behind how it avoids creating an event loop? Is it just creating a UI thread that is doing the event loop work in the background?
- rightbyte 6y agoIf there is no event loop I assume it has to be callbacks from the OS?
- grishka 6y agoIsn't there still an event loop internally though even with callbacks?
- rightbyte 6y agoI guess there need to be one somewhere unless you do hardware interrupts. It seems to have an event loop though: void app::run() { MSG messages; while (_running && GetMessage(&messages, nullptr, 0, 0) > 0) { TranslateMessage(&messages); DispatchMessage(&messages); } }
- ChrisSD 6y agoNOTE: That is the classic Win32 event loop.