1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-24 20:27:41 +00:00

Add per-thread finalizer calls in missing places.

This commit is contained in:
Calvin Rose
2025-09-01 12:38:11 -05:00
parent 82416e4e4e
commit 095a81286a
3 changed files with 15 additions and 10 deletions

View File

@@ -49,7 +49,7 @@
(while true
(def item (ev/take thread-channel))
(when (= item :deadline)
(ev/deadline 0.1 nil (fiber/current) true))))
(ev/deadline 0.1))))
(ev/thread worker nil :n super)
(ev/give thread-channel :deadline)
(ev/sleep 0.2)