1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-14 22:37:12 +00:00

Go back to a single supervisor channel per fiber.

We now also use the fiber mask to figure out which flags to wait for.
This commit is contained in:
Calvin Rose
2021-01-12 21:35:28 -06:00
parent 61cca10cf6
commit 4f2d1cdc00
6 changed files with 47 additions and 69 deletions

View File

@@ -846,9 +846,7 @@ struct JanetFiber {
* type, say "JanetTask", that as separate from fibers to save a bit of space. */
JanetListenerState *waiting;
uint32_t sched_id; /* Increment everytime fiber is scheduled by event loop */
void *done_channel; /* Channel to push self to when complete */
void *event_channel; /* Channel to push self to when yielding to event loop */
void *new_channel; /* Channel to push spawned children */
void *supervisor_channel; /* Channel to push self to when complete */
#endif
};