1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-12 03:28:07 +00:00

Make poll work by going back to array of listeners for gc keeping.

This commit is contained in:
Calvin Rose
2023-09-26 22:57:01 -05:00
parent a96971c8a7
commit d12464fc0e
3 changed files with 48 additions and 50 deletions

View File

@@ -624,11 +624,11 @@ struct JanetListenerState {
JanetStream *stream;
void *event; /* Used to pass data from asynchronous IO event. Contents depend on both
implementation of the event loop and the particular event. */
uint32_t index; /* Used for GC and poll implentation */
uint32_t flags;
#ifdef JANET_WINDOWS
void *tag; /* Used to associate listeners with an overlapped structure */
int bytes; /* Used to track how many bytes were transfered. */
#else
uint32_t index; /* Used for poll/epoll implentation */
#endif
};
#endif