]> git.ipfire.org Git - thirdparty/bind9.git/commit
Make lib/isc/app.c opaque and thread-safe
authorOndřej Surý <ondrej@sury.org>
Mon, 13 May 2019 13:58:20 +0000 (20:58 +0700)
committerOndřej Surý <ondrej@sury.org>
Mon, 20 May 2019 16:13:02 +0000 (18:13 +0200)
commiteb8c9bdd55f5e1af73cac07cbae571ad04b0da15
tree4468162c892de873298ecf833774ef15dcd4f741
parent4d30aee3e22052e7d9eb7d37f0ba79690b711570
Make lib/isc/app.c opaque and thread-safe

This work cleans up the API which includes couple of things:

1. Make the isc_appctx_t type fully opaque

2. Protect all access to the isc_app_t members via stdatomics

3. sigwait() is part of POSIX.1, remove dead non-sigwait code

4. Remove unused code: isc_appctx_set{taskmgr,sockmgr,timermgr}
20 files changed:
bin/delv/delv.c
bin/rndc/rndc.c
bin/tests/optional/shutdown_test.c
configure.ac
lib/dns/client.c
lib/irs/context.c
lib/isc/include/isc/app.h
lib/isc/include/isc/socket.h
lib/isc/include/isc/task.h
lib/isc/include/isc/timer.h
lib/isc/task.c
lib/isc/timer.c
lib/isc/unix/app.c
lib/isc/unix/socket.c
lib/isc/win32/app.c
lib/isc/win32/libisc.def.in
lib/isc/win32/socket.c
lib/samples/nsprobe.c
lib/samples/resolve.c
lib/samples/sample-async.c