]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add isc_uv_export()/isc_uv_import() functions to libuv compatibility layer.
authorWitold Kręcicki <wpk@isc.org>
Tue, 7 Jan 2020 10:00:15 +0000 (11:00 +0100)
committerEvan Hunt <each@isc.org>
Mon, 13 Jan 2020 18:52:07 +0000 (10:52 -0800)
commitc6c0a9fdba9ffb0a55f328f39ef847cd0fa7a340
tree6e58e8624b0be7b8395b1e427dea14a44018ae89
parentab1adcca9889694189bfa41ed121161f789dbdc6
Add isc_uv_export()/isc_uv_import() functions to libuv compatibility layer.

These functions can be used to pass a uv handle between threads in a
safe manner. The other option is to use uv_pipe and pass the uv_handle
via IPC, which is way more complex.  uv_export() and uv_import() functions
existed in libuv at some point but were removed later. This code is
based on the original removed code.

The Windows version of the code uses two functions internal to libuv;
a patch for libuv is attached for exporting these functions.
lib/isc/Makefile.in
lib/isc/netmgr/Makefile.in
lib/isc/netmgr/uv-compat.c [new file with mode: 0644]
lib/isc/netmgr/uv-compat.h
lib/isc/win32/libisc.def.in
lib/isc/win32/libisc.vcxproj.in
util/copyrights
win32utils/libuv.diff [new file with mode: 0644]