mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
LibCore: Port EventLoop to Windows
This commit is contained in:
parent
d4f8b598cb
commit
1c77135948
Notes:
github-actions[bot]
2024-11-14 18:19:34 +00:00
Author: https://github.com/stasoid
Commit: 1c77135948
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2299
Reviewed-by: https://github.com/ADKaster ✅
7 changed files with 320 additions and 6 deletions
|
@ -7,8 +7,12 @@
|
|||
#include <AK/NonnullOwnPtr.h>
|
||||
#include <LibCore/Event.h>
|
||||
#include <LibCore/EventLoopImplementation.h>
|
||||
#include <LibCore/EventLoopImplementationUnix.h>
|
||||
#include <LibCore/ThreadEventQueue.h>
|
||||
#ifdef AK_OS_WINDOWS
|
||||
# include <LibCore/EventLoopImplementationWindows.h>
|
||||
#else
|
||||
# include <LibCore/EventLoopImplementationUnix.h>
|
||||
#endif
|
||||
|
||||
namespace Core {
|
||||
|
||||
|
@ -23,7 +27,7 @@ static EventLoopManager* s_event_loop_manager;
|
|||
EventLoopManager& EventLoopManager::the()
|
||||
{
|
||||
if (!s_event_loop_manager)
|
||||
s_event_loop_manager = new EventLoopManagerUnix;
|
||||
s_event_loop_manager = new EventLoopManagerPlatform;
|
||||
return *s_event_loop_manager;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue