]> git.ipfire.org Git - thirdparty/bind9.git/commit
Enforce isc_work enqueue loop affinity
authorOndřej Surý <ondrej@isc.org>
Tue, 10 Mar 2026 17:25:37 +0000 (18:25 +0100)
committerOndřej Surý <ondrej@isc.org>
Sat, 14 Mar 2026 06:52:56 +0000 (07:52 +0100)
commitd4b96af062397e9de88fa2580da52049aa82f0bc
tree60e0d5c67d6cd33eb316b94b273429b8b8fda2cd
parentfdd3b36ba3cbe8a8c1b16f9e59270d45dcba298e
Enforce isc_work enqueue loop affinity

Add a REQUIRE(isc_loop() == loop) assertion to isc_work_enqueue()
to strictly enforce that work is enqueued from the loop it is
assigned to. This loudly prohibits cross-thread queue manipulation
before it inevitably turns into a concurrency debugging nightmare.

(cherry picked from commit f1311d2d196d381b2170c4b3d54262874a5d424e)
lib/isc/work.c
tests/isc/work_test.c