1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-30 15:13:03 +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

@@ -158,7 +158,7 @@ struct JanetVM {
volatile size_t extra_listeners; /* used in signal handler, must be volatile */
JanetTable threaded_abstracts; /* All abstract types that can be shared between threads (used in this thread) */
JanetTable active_tasks; /* All possibly live task fibers - used just for tracking */
JanetTable listeners; /* For GC */
JanetArray *listeners; /* For GC */
JanetTable signal_handlers;
#ifdef JANET_WINDOWS
void **iocp;