1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-29 22:53:03 +00:00

Initial threaded abstract types.

This commit is contained in:
Calvin Rose
2021-08-19 20:56:48 -05:00
parent e552757edc
commit eb0b37f729
7 changed files with 181 additions and 5 deletions

View File

@@ -161,6 +161,7 @@ struct JanetVM {
size_t listener_cap;
size_t extra_listeners;
JanetTable channel_map; /* threaded channel lookup table, no gc */
JanetTable threaded_abstracts; /* All abstract types that can be shared between threads (used in this thread) */
#ifdef JANET_WINDOWS
void **iocp;
#elif defined(JANET_EV_EPOLL)