1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-30 15:13:03 +00:00

Add kqueue support to Janet

Note that this is a work in progress and simply a first attempt at
getting some code into place before being able to test it. This code
follows of sorts both the poll and epoll sections of the codebase hoping
to achieve the exact same.
This commit is contained in:
llmII
2021-09-03 14:29:13 -05:00
parent 7037532943
commit a209a01284
3 changed files with 160 additions and 0 deletions

View File

@@ -171,6 +171,11 @@ struct JanetVM {
int epoll;
int timerfd;
int timer_enabled;
#elif defined(JANET_EV_KQUEUE)
JanetHandle selfpipe[2];
int kq;
int timer;
int timer_enabled
#else
JanetHandle selfpipe[2];
struct pollfd *fds;