This commit is contained in:
Kovid Goyal 2026-02-07 23:11:42 +05:30
parent 0d465f71a3
commit 9aab18d724
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -69,9 +69,10 @@ typedef struct {
bool repeats; bool repeats;
} Timer; } Timer;
#define MAX_NUM_OF_WATCHED_FDS 64
typedef struct { typedef struct {
struct pollfd fds[32]; struct pollfd fds[MAX_NUM_OF_WATCHED_FDS];
#ifdef HAS_EVENT_FD #ifdef HAS_EVENT_FD
int wakeupFd; int wakeupFd;
#else #else
@ -84,7 +85,7 @@ typedef struct {
#endif #endif
bool wakeup_data_read, wakeup_fd_ready, key_repeat_fd_ready; bool wakeup_data_read, wakeup_fd_ready, key_repeat_fd_ready;
nfds_t watches_count, timers_count; nfds_t watches_count, timers_count;
Watch watches[32]; Watch watches[MAX_NUM_OF_WATCHED_FDS];
Timer timers[128]; Timer timers[128];
} EventLoopData; } EventLoopData;