1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

LibCore+LibGUI: Remove GEventLoop and use CEventLoop everywhere

GEventLoop was just a dummy subclass of CEventLoop anyway. The only
thing it actually did was make sure a GWindowServerConnectionw was
instantiated. We now take care of that in GApplication instead.

CEventLoop is now non-virtual and a little less confusing. :^)
This commit is contained in:
Andreas Kling 2019-09-22 20:50:39 +02:00
parent edac8704de
commit 34d0e96aec
12 changed files with 23 additions and 42 deletions

View file

@ -37,8 +37,8 @@ int main(int argc, char** argv)
u8 buffer[4096];
piano_widget->fill_audio_buffer(buffer, sizeof(buffer));
audio->write(buffer, sizeof(buffer));
GEventLoop::current().post_event(*piano_widget, make<CCustomEvent>(0));
GEventLoop::wake();
CEventLoop::current().post_event(*piano_widget, make<CCustomEvent>(0));
CEventLoop::wake();
}
});
sound_thread.start();