9 Commits

Author SHA1 Message Date
MarcoFalke
fa18be2f2b
test: Fix typo 2026-02-27 09:21:45 +01:00
furszy
9dc653b3b4
test: threadpool, add coverage for all Submit() errors
Submit tasks to a non-started, interrupted, or stopped
pool and verify the proper error is always returned.
2026-02-26 11:28:55 -03:00
l0rinc
ce2a984ee3
test: cleanup, use HasReason in threadpool_tests.cpp 2026-02-26 11:28:55 -03:00
seduless
3b7cbcafcb
test: ensure Stop() thread helps drain the queue
Exercise the case where tasks remain pending and verify that the
thread calling Stop() participates in draining the queue
2026-02-26 11:16:11 -03:00
furszy
ca101a2315
test: coverage for queued tasks completion after interrupt 2026-02-26 11:15:52 -03:00
furszy
e88d274430
test: add threadpool Start-Stop race coverage
Co-authored-by: Hodlinator <172445034+hodlinator@users.noreply.github.com>
2026-02-26 11:15:52 -03:00
l0rinc
9ff1e82e7d
test: cleanup, block threads via semaphore instead of shared_future
No-behavior change.
2026-02-24 19:18:31 -03:00
furszy
59d24bd5dd
threadpool: make Submit return Expected instead of throwing
Unlike exceptions, which can be ignored as they require extra try-catch
blocks, returning expected errors forces callers to always handle
submission failures.

Not throwing an exception also fixes an unclean shutdown bug
#34573 since we no longer throw when attempting to Submit()
from the libevent callback http_request_cb().
2026-02-17 15:02:40 -05:00
furszy
c528dd5f8c
util: introduce general purpose thread pool 2026-01-30 16:17:12 -05:00