Allow nesting worker thread calls

Incorporating changes from the nar-herder.
This commit is contained in:
Christopher Baines 2024-12-28 08:47:03 +00:00
parent 4e791aff68
commit 4e564b4814
2 changed files with 38 additions and 21 deletions

View file

@ -4,8 +4,8 @@
(unit-test)
(knots worker-threads))
(let ((worker-thread-channel
(make-worker-thread-channel
(let ((worker-thread-set
(make-worker-thread-set
(const '())
#:parallelism 2)))
@ -13,7 +13,7 @@
(lambda ()
(assert-equal
(call-with-worker-thread
worker-thread-channel
worker-thread-set
(lambda ()
4))
4))))