1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-13 04:09:54 +00:00
janet/src
bakpakin 160dd830a0 Add janet_interpreter_interrupt for custom scheduling.
This would allow an embedder to suspend the current Janet fiber
via an external event like a signal, other thread, or really anything.
This is a useful primitive for custom schedulers that would call
janet_interpreter_interupt periodically (say, in an interval with SIG_ALRM),
do some work, and then use janet_continue on the janet_root_fiber, or
for embedding into other soft-realtime applications like a game. To say,
only allow about 5ms per frame of interpreter time.
2021-07-24 15:14:37 -05:00
..
boot Add janet_vm_save and janet_vm_load. 2021-07-16 20:59:03 -05:00
conf Add janet_interpreter_interrupt for custom scheduling. 2021-07-24 15:14:37 -05:00
core Add janet_interpreter_interrupt for custom scheduling. 2021-07-24 15:14:37 -05:00
include Add janet_interpreter_interrupt for custom scheduling. 2021-07-24 15:14:37 -05:00
mainclient Add janet_loop_fiber C function to run a fiber to completion from C. 2021-07-18 09:39:37 -05:00