mirror of
https://github.com/janet-lang/janet
synced 2025-11-13 22:07:13 +00:00
Change fiber signal model to add user signals. This
should allow easier implementations of eventloops, threadpools, or custom data flows with fibers.
This commit is contained in:
@@ -188,7 +188,8 @@ recur:
|
||||
return;
|
||||
dst_gc_mark(fiber);
|
||||
|
||||
if (fiber->flags & DST_FIBER_FLAG_NEW)
|
||||
/* Check if new fiber - all status bits sets indicate :new status */
|
||||
if ((fiber->flags & DST_FIBER_STATUS_MASK) == DST_FIBER_STATUS_MASK)
|
||||
dst_mark_function(fiber->root);
|
||||
|
||||
i = fiber->frame;
|
||||
|
||||
Reference in New Issue
Block a user