This commit is contained in:
parent
1a476b5aa8
commit
05ad83c703
2 changed files with 29 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue