Implement lifetime support for thread pools
Some checks failed
/ test (push) Has been cancelled

This commit is contained in:
Christopher Baines 2025-11-17 11:37:26 +00:00
parent 1a476b5aa8
commit 05ad83c703
2 changed files with 29 additions and 3 deletions

View file

@ -85,4 +85,26 @@
(+ 1 'a))))
#:unwind? #t)))))
(let ((thread-pool
(make-fixed-size-thread-pool 1 #:thread-lifetime 1)))
(for-each
(lambda _
(call-with-thread
thread-pool
(lambda () #f)))
(iota 10)))
(run-fibers-for-tests
(lambda ()
(let ((thread-pool
(make-thread-pool 1 #:thread-lifetime 1)))
(for-each
(lambda _
(call-with-thread
thread-pool
(lambda () #f)))
(iota 10)))))
(display "thread-pool test finished successfully\n")