1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-24 22:23:15 +00:00
janet/src/conf
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
..
janetconf.h Add janet_interpreter_interrupt for custom scheduling. 2021-07-24 15:14:37 -05:00