Commit graph

19 commits

Author SHA1 Message Date
b411faf279 Tweak the thread pool delay and duration loggers
Bringing the functionality in line with the resource pool loggers.
2026-03-23 13:25:29 +00:00
d0ff89023b Add documentation for lots of the "undocumented" bits
All checks were successful
/ test (push) Successful in 6s
In the Guile Documenta generated documentation.
2026-03-23 11:56:53 +00:00
db9b549e59 Fix the destroy behaviour for fixed size thread pools
All checks were successful
/ test (push) Successful in 38s
destroy-thread-pool should block until the thread pool has been
destroyed.
2026-03-18 09:42:17 +00:00
d3d4964210 Add more documentation 2026-03-18 08:44:26 +00:00
95200eccfd Fix fixed size thread pool lifetimes
Some checks failed
/ test (push) Has been cancelled
2025-11-19 15:59:18 +00:00
05ad83c703 Implement lifetime support for thread pools
Some checks failed
/ test (push) Has been cancelled
2025-11-17 11:37:26 +00:00
e78e41b542 Pass through default-max-waiters in make-thread-pool 2025-11-17 11:19:30 +00:00
2446078657 Fix updating the thread-proc-vector in thread pools 2025-11-17 11:19:01 +00:00
163d775496 Fix record-predicate that should be exception-predicate 2025-06-27 00:16:18 +02:00
5663a5f2e9 Address exception naming inconsistencies 2025-06-21 09:43:52 +01:00
cbafdb8668 Respect use-default-io-waiters? for the fixed size thread pools 2025-05-25 15:34:07 +01:00
016f37f108 Rework thread pools
Allow the thread pool to vary in size by basing it on a resource pool
of fixed size thread pools, which are similar to the previous thread
pool implementation.

Fixed size thread pools don't require fibers, but thread pools now
do. Some procedures work with either thread pool implementation.
2025-05-19 09:06:08 +01:00
7ba77010ae Handle %stacks not being a pair
Not sure when this would happen, but guard against it.
2025-05-15 09:26:29 +01:00
21e328aebb Improve exception reporting 2025-02-27 13:22:36 +00:00
ed4113af51 Simplify and extend using the knots exception with stack 2025-02-27 13:22:36 +00:00
f549bee282 Improve thread pool exception logging 2025-02-26 10:07:54 +00:00
d597b77fcb Use the thread-pool record for the default timeout
Rather than a parameter.
2025-02-10 15:16:37 +00:00
6c083bdebd Use default io waiters in the thread pool
To allow creating thread pools from fibers.
2025-02-10 15:13:30 +00:00
d572f591a3 Rename worker threads to thread pool
I think this needs more work, maybe the thread pool should be more
similar to the resource pool, but I think the name change is still
helpful.

Maybe there's a need for a variable size thread pool and that can
better integrate with the work queue.
2025-01-14 10:05:06 +00:00
Renamed from knots/worker-threads.scm (Browse further)