]> git.ipfire.org Git - thirdparty/bind9.git/commit
use a thread-local variable to get the current running loop
authorEvan Hunt <each@isc.org>
Tue, 26 Mar 2024 07:13:45 +0000 (00:13 -0700)
committerOndřej Surý <ondrej@isc.org>
Tue, 2 Apr 2024 08:35:56 +0000 (10:35 +0200)
commitc47fa689d47f1a387bef001e738ca47d95e21485
treeebfdf5687632de5192a9a66564475da66ffa75de
parentcad6292fc4ebc33a5761ead10a063040ddcd9828
use a thread-local variable to get the current running loop

if we had a method to get the running loop, similar to how
isc_tid() gets the current thread ID, we can simplify loop
and loopmgr initialization.

remove most uses of isc_loop_current() in favor of isc_loop().
in some places where that was the only reason to pass loopmgr,
remove loopmgr from the function parameters.
22 files changed:
bin/delv/delv.c
bin/named/server.c
lib/dns/adb.c
lib/dns/catz.c
lib/dns/client.c
lib/dns/include/dns/adb.h
lib/dns/include/dns/view.h
lib/dns/include/dns/zone.h
lib/dns/nta.c
lib/dns/resolver.c
lib/dns/rpz.c
lib/dns/view.c
lib/dns/zone.c
lib/isc/include/isc/loop.h
lib/isc/loop.c
lib/isc/timer.c
tests/bench/qpmulti.c
tests/dns/zonemgr_test.c
tests/isc/async_test.c
tests/isc/job_test.c
tests/isc/timer_test.c
tests/libtest/dns.c