]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add isc_helper API that adds 1:1 thread for each loop
authorOndřej Surý <ondrej@isc.org>
Tue, 10 Sep 2024 13:02:53 +0000 (15:02 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 12 Sep 2024 12:09:45 +0000 (12:09 +0000)
commit6370e9b3111e23dca1c018052ec98595462316fb
treebe450e46042aa0fde693edc792061b22988408b9
parent91bc0b439ad00a44deb26588d32cae734ba9ed81
Add isc_helper API that adds 1:1 thread for each loop

Add an extra thread that can be used to offload operations that would
affect latency, but are not long-running tasks; those are handled by
isc_work API.

Each isc_loop now has matching isc_helper thread that also built on top
of uv_loop.  In fact, it matches most of the isc_loop functionality, but
only the `isc_helper_run()` asynchronous call is exposed.
lib/isc/Makefile.am
lib/isc/helper.c [new file with mode: 0644]
lib/isc/include/isc/helper.h [new file with mode: 0644]
lib/isc/loop.c
lib/isc/loop_p.h