LibGUI: Rewrite using epoll

select is slow :^)
This commit is contained in:
2026-01-12 23:53:11 +02:00
parent 311a68160c
commit c30fc9d60f
2 changed files with 23 additions and 14 deletions

View File

@@ -81,8 +81,9 @@ namespace LibGUI
int server_fd() const { return m_server_fd; }
private:
Window(int server_fd, Attributes attributes)
Window(int server_fd, int epoll_fd, Attributes attributes)
: m_server_fd(server_fd)
, m_epoll_fd(epoll_fd)
, m_attributes(attributes)
{ }
@@ -93,6 +94,7 @@ namespace LibGUI
private:
const int m_server_fd;
const int m_epoll_fd;
bool m_handling_socket_error { false };